From 58b482856cf37b0519e516ab8dc1105ba958f8b2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Apr 2019 18:22:17 +0200 Subject: Adding upstream version 1.14.0. Signed-off-by: Daniel Baumann --- collectors/python.d.plugin/couchdb/couchdb.chart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'collectors/python.d.plugin/couchdb/couchdb.chart.py') 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 -- cgit v1.2.3