瀏覽代碼

Seems it will sometimes raise AssertionError.

tags/v0.2
Ben Kurtovic 10 年之前
父節點
當前提交
699f6e3b17
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      earwigbot/wiki/copyvios/parsers.py

+ 1
- 1
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()


Loading…
取消
儲存