From: Radek Czajka Date: Wed, 14 Jul 2010 10:26:40 +0000 (+0200) Subject: minor fix X-Git-Tag: 1.7~280 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/33db54c61d9818547c059e3e3cda2518a260bcda?hp=90cbf4aecef5caa3f2a819f1c9072626a4f18d96 minor fix --- diff --git a/librarian/epub.py b/librarian/epub.py index 201799b..cb2166b 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -358,7 +358,8 @@ if __name__ == '__main__': print input if html.transform(input, is_file=True) == '': print 'empty content - skipping' - transform(open(input, 'r'), open(output, 'w')) + else: + transform(open(input, 'r'), open(output, 'w'))