Skip to content

Commit

Permalink
- test if jsonOutput[1] is None or "" fix contributed by
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismattmann committed Aug 15, 2015
1 parent f887f78 commit 200fd65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tika/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def _parse(jsonOutput):
parsed={}
if not jsonOutput:
return parsed
elif jsonOutput[1] == None or jsonOutput[1] == "":
return parsed
realJson = json.loads(jsonOutput[1])

content = ""
Expand Down

0 comments on commit 200fd65

Please sign in to comment.