diff options
author | Ilya <ilyamaschenko@gmail.com> | 2017-08-07 09:56:33 +0900 |
---|---|---|
committer | Ilya <ilyamaschenko@gmail.com> | 2017-08-07 09:56:33 +0900 |
commit | 78ae7f6b03e89eca7beed3ce3eb1dde5396a7968 (patch) | |
tree | e38ece7756af8106492ae7d18f1560f6b14a9686 /python.d | |
parent | bc50c1d999f16be4818b8df1bf53b4dd7fb84ba7 (diff) |
mysql plugin: properly handle exceptions in "slave_secodnds" func
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/mysql.chart.py | 2 |
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): |