We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6de1c commit 19d3be1Copy full SHA for 19d3be1
src/parserindexer/journalparser.py
@@ -22,7 +22,10 @@ def parse_file(self, path):
22
# (3) Input file is a PDF
23
parsed = super(JournalParser, self).parse_file(path)
24
pdf_md = parsed['metadata']
25
- assert pdf_md['Content-Type'] == JournalParser._PDF_TYPE
+ if type(pdf_md['Content-Type']) == list:
26
+ assert JournalParser._PDF_TYPE in pdf_md['Content-Type']
27
+ else:
28
+ assert pdf_md['Content-Type'] == JournalParser._PDF_TYPE
29
# Why would we check that it's already been parsed before doing so?
30
#assert JournalParser._JOURNAL_PARSER in set(pdf_md['X-Parsed-By'])
31
0 commit comments