mysql plugin: properly handle exceptions in "slave_secodnds" func
Ilya committed
Aug 7, 2017 at 09:56 UTC
78ae7f6b03e89eca7beed3ce3eb1dde5396a7968
1 file changed
+1
-1
python.d/mysql.chart.py
+1
-1
@@ -119,7 +119,7 @@ GLOBAL_STATS = [
119
def slave_seconds(value):
120
try:
121
return int(value)
122
- except ValueError:
122
+ except (TypeError, ValueError):
123
return -1
124
125
def slave_running(value):