Throw exception if iccprofiles not found instead of returning None

So far iccprofiles were only missing for a user who had a custom and
possibly broken ghostscript installation.
This commit is contained in:
James R. Barlow
2015-08-28 03:59:35 -07:00
parent 2ce6834be4
commit c6d106ec33
+2
View File
@@ -115,6 +115,8 @@ def _get_postscript_icc_path():
if os.path.exists(path):
return path
raise FileNotFoundError("Could not find Ghostscript's iccprofiles")
def generate_pdfa_def(target_filename, pdfmark, icc='sRGB'):
if icc == 'sRGB':