From c1a892f5ecaeac6bd999f4bd461eb8f49783d92f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 May 2017 16:20:48 +0100 Subject: [PATCH] fixing SyntaxError in line 259, should be elif NOTelsif --- zabbix/zabbix_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix/zabbix_api.py b/zabbix/zabbix_api.py index 841763d..bfe6799 100644 --- a/zabbix/zabbix_api.py +++ b/zabbix/zabbix_api.py @@ -256,7 +256,7 @@ def do_request(self, json_obj): except urllib2.URLError as e: if hasattr(e, 'message') and e.message: e = e.message - elsif hasattr(e, 'reason'): + elif hasattr(e, 'reason'): e = e.reason raise ZabbixAPIException("urllib2.URLError - %s" % e) self.debug(logging.INFO, "Response Code: " + str(response.code))