Module: check_mk
Branch: master
Commit: 045a7b4e3c0ac8091af6c1388dd8c73ca0050289
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=045a7b4e3c0ac8…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Mar 3 14:05:27 2017 +0100
fixed systemtime if get_agent_data_time() returns None
Change-Id: I20c4e94046f55b95a8c59ed4795792290e7a5b04
---
checks/systemtime | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/systemtime b/checks/systemtime
index 363d505..bb7c901 100644
--- a/checks/systemtime
+++ b/checks/systemtime
@@ -40,7 +40,7 @@ def check_systemtime(item, params, info):
systemtime = int(info[0][0])
try:
systemtime += get_agent_data_time()
- except NameError:
+ except (NameError, TypeError):
pass
ourtime = int(time.time())