Skip to content

Commit 0c1e827

Browse files
authored
Merge pull request #15 from linuxdaemon/master+fix-json-decode-errors
Make sure to ignore control codes in API response parsing
2 parents d077762 + 942ccc7 commit 0c1e827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cleverwrap/cleverwrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _send(self, params):
7474
# catch errors, print then exit.
7575
except requests.exceptions.RequestException as e:
7676
print(e)
77-
return r.json()
77+
return r.json(strict=False) # Ignore possible control codes in returned data
7878

7979

8080
def _process_reply(self, reply):

0 commit comments

Comments
 (0)