handle RecursionError

pull/94/head
eric 2020-07-29 12:51:14 -04:00
parent 1c380b0e9f
commit 73b863450e
1 changed files with 1 additions and 1 deletions

View File

@ -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