Skip to content

Commit 3a4ed80

Browse files
committed
Fixed bug with request special handling conditions
1 parent 282ec38 commit 3a4ed80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stackdio/client/http.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def _request(self, verb, url, quiet=False,
116116
elif raise_for_status:
117117
result.raise_for_status()
118118

119-
elif jsonify:
119+
# return
120+
if jsonify:
120121
return result.json()
121-
122-
# Default return
123-
return result
122+
else:
123+
return result
124124

125125

126126
def _head(self, url, *args, **kwargs):

0 commit comments

Comments
 (0)