Show a better error message (on Windows) if Ghostscript is not installed.

master
Pacman Ghost 7 years ago
parent 09d8078749
commit ccd13c8499
  1. 4
      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

Loading…
Cancel
Save