summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/couchdb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-04-26 16:22:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-04-26 16:22:17 +0000
commit58b482856cf37b0519e516ab8dc1105ba958f8b2 (patch)
tree0c46396e98741dfae4ce907bc8ef8c54418b3753 /collectors/python.d.plugin/couchdb
parentAdding upstream version 1.14.0~rc0. (diff)
downloadnetdata-58b482856cf37b0519e516ab8dc1105ba958f8b2.tar.xz
netdata-58b482856cf37b0519e516ab8dc1105ba958f8b2.zip
Adding upstream version 1.14.0.upstream/1.14.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/python.d.plugin/couchdb')
-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