Skip to content

Commit

Permalink
fix json compliant function for floats
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Mar 29, 2020
1 parent c05510f commit 5f5845e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eNMS/models/automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def rec(value):
return {k: rec(v) for k, v in value.items()}
elif isinstance(value, list):
return list(map(rec, value))
elif not isinstance(value, (int, str, bool, None.__class__)):
elif not isinstance(value, (int, str, bool, float, None.__class__)):
self.log("warning", f"Incompatible JSON value in results ({value})")
return str(value)
else:
Expand Down

0 comments on commit 5f5845e

Please sign in to comment.