diff options
Diffstat (limited to 'monitoring/zabbix_screen.py')
-rw-r--r-- | monitoring/zabbix_screen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitoring/zabbix_screen.py b/monitoring/zabbix_screen.py index ffdcb21b..85af561c 100644 --- a/monitoring/zabbix_screen.py +++ b/monitoring/zabbix_screen.py @@ -354,7 +354,7 @@ def main(): try: zbx = ZabbixAPIExtends(server_url, timeout=timeout, user=http_login_user, passwd=http_login_password) zbx.login(login_user, login_password) - except Exception, e: + except Exception as e: module.fail_json(msg="Failed to connect to Zabbix server: %s" % e) screen = Screen(module, zbx) |