Skip to content

Commit

Permalink
Make sure to ignore control codes in API response parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Jan 23, 2018
1 parent d077762 commit 942ccc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleverwrap/cleverwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _send(self, params):
# catch errors, print then exit.
except requests.exceptions.RequestException as e:
print(e)
return r.json()
return r.json(strict=False) # Ignore possible control codes in returned data


def _process_reply(self, reply):
Expand Down

0 comments on commit 942ccc7

Please sign in to comment.