Skip to content

Commit 200fd65

Browse files
committed
- test if jsonOutput[1] is None or "" fix contributed by
https://github.com/mmolenda this closes #63
1 parent f887f78 commit 200fd65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tika/parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def _parse(jsonOutput):
3333
parsed={}
3434
if not jsonOutput:
3535
return parsed
36+
elif jsonOutput[1] == None or jsonOutput[1] == "":
37+
return parsed
3638
realJson = json.loads(jsonOutput[1])
3739

3840
content = ""

0 commit comments

Comments
 (0)