From 699f6e3b1772a24927ca0176a05f5aac9eca10f0 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 17 Oct 2014 00:27:28 -0500 Subject: [PATCH] Seems it will sometimes raise AssertionError. --- earwigbot/wiki/copyvios/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/parsers.py b/earwigbot/wiki/copyvios/parsers.py index 3567cc3..d3d121b 100644 --- a/earwigbot/wiki/copyvios/parsers.py +++ b/earwigbot/wiki/copyvios/parsers.py @@ -207,7 +207,7 @@ class _PDFParser(_BaseTextParser): pages = pdfpage.PDFPage.get_pages(StringIO(self.text)) for page in pages: interp.process_page(page) - except (pdftypes.PDFException, psparser.PSException): + except (pdftypes.PDFException, psparser.PSException, AssertionError): return output.getvalue().decode("utf8") finally: conv.close()