summaryrefslogtreecommitdiffstats
path: root/python.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-12 14:21:51 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-12 14:21:51 +0200
commit63905a8f2c48ef89d8c46f30b3db76986143147c (patch)
tree0dbab4df3e97aa149dd5da1351b964e34c3ee382 /python.d
parenta8204a0e864b4e0226ee07243adeb61f007fedf1 (diff)
gracefully handle dovecot errors
Diffstat (limited to 'python.d')
-rw-r--r--python.d/dovecot.chart.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python.d/dovecot.chart.py b/python.d/dovecot.chart.py
index 1fbc471cb1..60e8bf6ef7 100644
--- a/python.d/dovecot.chart.py
+++ b/python.d/dovecot.chart.py
@@ -110,6 +110,10 @@ class Service(SocketService):
except (ValueError, AttributeError):
return None
+ if raw is None:
+ self.debug("dovecot returned no data")
+ return None
+
data = raw.split('\n')[:2]
desc = data[0].split('\t')
vals = data[1].split('\t')