handle RecursionError
parent
1c380b0e9f
commit
73b863450e
|
@ -82,7 +82,7 @@ def staple_pdf(urllist, user_agent=settings.USER_AGENT):
|
|||
out = BytesIO()
|
||||
try:
|
||||
merger.write(out)
|
||||
except PdfReadError:
|
||||
except (PdfReadError, RecursionError):
|
||||
logger.error("error writing pdf url: %s", url)
|
||||
return None
|
||||
return out
|
||||
|
|
Loading…
Reference in New Issue