Skip to content

Commit 942ccc7

Browse files
committed
Make sure to ignore control codes in API response parsing
1 parent d077762 commit 942ccc7

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)