Skip to content

Commit cb276d0

Browse files
committed
delete jsonget try/except block now covered by _decode
1 parent b416a3a commit cb276d0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

rejson/client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,7 @@ def jsonget(self, name, *args, no_escape=False):
121121
for p in args:
122122
pieces.append(str_path(p))
123123

124-
# Handle case where key doesn't exist. The JSONDecoder would raise a
125-
# TypeError exception since it can't decode None
126-
try:
127-
return self.execute_command('JSON.GET', *pieces)
128-
except TypeError:
129-
return None
124+
return self.execute_command('JSON.GET', *pieces)
130125

131126
def jsonmget(self, path, *args):
132127
"""

0 commit comments

Comments
 (0)