Skip to content

Commit

Permalink
Merge pull request #15 from linuxdaemon/master+fix-json-decode-errors
Browse files Browse the repository at this point in the history
Make sure to ignore control codes in API response parsing
  • Loading branch information
edwardslabs authored Jan 25, 2018
2 parents d077762 + 942ccc7 commit 0c1e827
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 0c1e827

Please sign in to comment.