From 33db54c61d9818547c059e3e3cda2518a260bcda Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 14 Jul 2010 12:26:40 +0200 Subject: [PATCH] minor fix --- librarian/epub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')) -- 2.20.1