diff options
author | Ilya Mashchenko <ilyamaschenko@gmail.com> | 2019-04-11 10:46:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-11 10:46:28 +0300 |
commit | a89328ab66534cf18cf9a9887ffd708bc426d309 (patch) | |
tree | dcab4973fe88f9159288f20bf8740d2ede3ffe77 | |
parent | bee48fd3aae71769bf5838412a52c9e20ad954a7 (diff) |
add TypeError in except (#5833)
-rw-r--r-- | collectors/python.d.plugin/couchdb/couchdb.chart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/python.d.plugin/couchdb/couchdb.chart.py b/collectors/python.d.plugin/couchdb/couchdb.chart.py index b40c41229a..50fe6669f5 100644 --- a/collectors/python.d.plugin/couchdb/couchdb.chart.py +++ b/collectors/python.d.plugin/couchdb/couchdb.chart.py @@ -351,7 +351,7 @@ class Service(UrlService): try: for m in metrics_list: value = value[m] - except KeyError as e: + except (KeyError, TypeError) as e: self.debug('cannot process ' + metric + ' for ' + db + ": " + str(e)) continue @@ -367,7 +367,7 @@ class Service(UrlService): try: for m in metrics_list: value = value[m] - except KeyError as e: + except (KeyError, TypeError) as e: self.debug('cannot process ' + metric + ': ' + str(e)) continue # strip off .value from end of stat |