diff --git a/asl_cards/parse.py b/asl_cards/parse.py index cabcd23..2ecde3d 100644 --- a/asl_cards/parse.py +++ b/asl_cards/parse.py @@ -110,6 +110,10 @@ class PdfParser: except AnalyzeCancelledException as ex : raise except Exception as ex : + if str(ex).lower().find( "can not find ghostscript dll" ) >= 0 : + # NOTE: We get a RuntimeError if Ghostscript is not installed :-/ + # We bail, since there's no point trying to parse any more files. + raise # notify the caller of the error if not self.on_error : raise