Skip to content

Commit

Permalink
Fix error handling (#4505)
Browse files Browse the repository at this point in the history
* Fix error handling

* Update go_expvar.py
  • Loading branch information
ofek authored Sep 4, 2019
1 parent 962a233 commit aa6c74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go_expvar/datadog_checks/go_expvar/go_expvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def parse_expvar_data(self, data, tags, metrics, max_metrics, namespace):

try:
float(value)
except ValueError:
except (TypeError, ValueError):
self.log.warning("Unreportable value for path %s: %s" % (path, value))
continue

Expand Down

0 comments on commit aa6c74b

Please sign in to comment.