From 0746083301a7d074525a3fa2a970c732cb0c65dd Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 3 Aug 2016 01:00:38 -0700 Subject: [PATCH] Fix failing test case - unbound local variable in finally block --- ocrmypdf/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py index dc205d8d..cb035a9e 100755 --- a/ocrmypdf/main.py +++ b/ocrmypdf/main.py @@ -427,8 +427,6 @@ def triage_image_file(input_file, output_file, log): elif im.mode == 'CMYK': log.info('Input CMYK image has no ICC profile, not usable') sys.exit(ExitCode.input_file) - - finally: im.close() try: