Skip to content

Commit

Permalink
don't allow NaN re #34
Browse files Browse the repository at this point in the history
  • Loading branch information
mathisonian committed Mar 20, 2016
1 parent 7ab5845 commit 3969fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lightning/types/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,4 +651,5 @@ def clean(spec):

outdict = {}
outdict = add_property(outdict, spec, 'spec')

return outdict
2 changes: 1 addition & 1 deletion lightning/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _create(cls, session=None, data=None, images=None, type=None, options=None,
if description:
payload['description'] = description
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
r = requests.post(url, data=json.dumps(payload), headers=headers, auth=session.auth)
r = requests.post(url, data=json.dumps(payload, allow_nan=False), headers=headers, auth=session.auth)
if r.status_code == 404:
raise Exception(r.text)
elif not r.status_code == requests.codes.ok:
Expand Down

0 comments on commit 3969fbb

Please sign in to comment.