Sfoglia il codice sorgente

Seems it will sometimes raise AssertionError.

tags/v0.2
Ben Kurtovic 10 anni fa
parent
commit
699f6e3b17
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      earwigbot/wiki/copyvios/parsers.py

+ 1
- 1
earwigbot/wiki/copyvios/parsers.py Vedi File

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


Caricamento…
Annulla
Salva