summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/couchdb/couchdb.chart.py
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/python.d.plugin/couchdb/couchdb.chart.py')
-rw-r--r--collectors/python.d.plugin/couchdb/couchdb.chart.py4
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 b40c41229..50fe6669f 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