From 200fd65a1d9420902365820c1c702f9fd2901564 Mon Sep 17 00:00:00 2001 From: Chris Mattmann Date: Fri, 14 Aug 2015 22:46:25 -0700 Subject: [PATCH] - test if jsonOutput[1] is None or "" fix contributed by https://github.com/mmolenda this closes #63 --- tika/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tika/parser.py b/tika/parser.py index 7e7186c..1903453 100644 --- a/tika/parser.py +++ b/tika/parser.py @@ -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 = ""