From 78ae7f6b03e89eca7beed3ce3eb1dde5396a7968 Mon Sep 17 00:00:00 2001 From: Ilya Date: Mon, 7 Aug 2017 09:56:33 +0900 Subject: mysql plugin: properly handle exceptions in "slave_secodnds" func --- python.d/mysql.chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python.d') 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): -- cgit v1.2.3