Skip to content

Commit

Permalink
#536 fix error from iocp with some PDF file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Sep 20, 2019
1 parent 79a01d1 commit 51fb59b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analyzers/FileInfo/submodules/submodule_ioc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def iocparser(self, path):
oformat = 'json'
try:
with redirect_stdout(out):
P.Parser(output_format=oformat).parse(path)
try:
P.Parser(output_format=oformat).parse(path)
except TypeError:
pass
oo = out.getvalue().split('\n')
if oo[-1] == '':
oo.pop()
Expand Down

0 comments on commit 51fb59b

Please sign in to comment.