From 2cccabcccd98d50e4a103960a79d55e8e8ef3b2d Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 9 May 2009 14:51:48 -0400 Subject: [PATCH] Fix pdfmanipulate split. --- src/calibre/ebooks/pdf/manipulate/split.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/pdf/manipulate/split.py b/src/calibre/ebooks/pdf/manipulate/split.py index 957b78f1e6..3ef2549a62 100644 --- a/src/calibre/ebooks/pdf/manipulate/split.py +++ b/src/calibre/ebooks/pdf/manipulate/split.py @@ -188,7 +188,7 @@ def main(args=sys.argv, name=''): print 'Error: Could not read file `%s`.' % pdf return 1 - if is_encrypted(args[0]): + if is_encrypted(pdf): print 'Error: file `%s` is encrypted.' % args[0] return 1