summaryrefslogtreecommitdiffstats
path: root/python.d
diff options
context:
space:
mode:
authorIlya <ilyamaschenko@gmail.com>2017-08-07 09:56:33 +0900
committerIlya <ilyamaschenko@gmail.com>2017-08-07 09:56:33 +0900
commit78ae7f6b03e89eca7beed3ce3eb1dde5396a7968 (patch)
treee38ece7756af8106492ae7d18f1560f6b14a9686 /python.d
parentbc50c1d999f16be4818b8df1bf53b4dd7fb84ba7 (diff)
mysql plugin: properly handle exceptions in "slave_secodnds" func
Diffstat (limited to 'python.d')
-rw-r--r--python.d/mysql.chart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/mysql.chart.py b/python.d/mysql.chart.py
index af65f08708..6118f79f2d 100644
--- a/python.d/mysql.chart.py
+++ b/python.d/mysql.chart.py
@@ -119,7 +119,7 @@ GLOBAL_STATS = [
def slave_seconds(value):
try:
return int(value)
- except ValueError:
+ except (TypeError, ValueError):
return -1
def slave_running(value):