Fix exception on parsing Ghostscript error messages

This commit is contained in:
James R. Barlow
2019-12-20 11:25:45 -08:00
parent 343424b4d2
commit a53a3937c2
+1 -1
View File
@@ -329,7 +329,7 @@ def generate_pdfa(
if _gs_error_reported(stderr):
last_part = None
repcount = 0
for part in p.stdout.split('****'):
for part in stderr.split('****'):
if part != last_part:
if repcount > 1:
log.error(f"(previous error message repeated {repcount} times)")