From a784b963e63587f4324a5c2b764f48ac10f11ed3 Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 2 May 2017 10:49:34 +0000 Subject: [PATCH] Fixed a problem if the user opts to skip parsing a file. --- asl_cards/parse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/asl_cards/parse.py b/asl_cards/parse.py index 400fa64..ee28929 100644 --- a/asl_cards/parse.py +++ b/asl_cards/parse.py @@ -105,6 +105,8 @@ class PdfParser: if self.cancelling : raise AnalyzeCancelledException() try : file_cards = self._do_parse_file( float(file_no)/len(fnames) , fname , max_pages , image_res ) + if file_cards is None : + continue except AnalyzeCancelledException as ex : raise except Exception as ex :