Skip to content

Conversation

@nesies
Copy link

@nesies nesies commented Jan 28, 2016

Zabbix 2.2.9 here, sometimes, i got a stack trace:

result = api_conn.host.get(request)

File "xxx/zabbix_api.py", line 334, in method
return self.universal("%s.%s" % (self.data["prefix"], name), opts[0])
File "xxx/zabbix_api.py", line 79, in wrapper
return self.do_request(self.json_obj(method, opts))['result']
File "xxx/zabbix_api.py", line 341, in do_request
return self.parent.do_request(req)
File "xxxx/zabbix_api.py", line 288, in do_request
jobj['error']['message'], jobj['error']['data'], str(json_obj))
KeyError: 'data'

@paskal
Copy link

paskal commented Jan 28, 2016

Looks good by me. Python 3 tested?

@nesies
Copy link
Author

nesies commented Jan 29, 2016

only test with python 2.6.6

@gescheit
Copy link
Owner

gescheit commented Feb 1, 2016

Hi! Thanks for request, but i can't merge it because method has_key removed in python3. Please use operator "in" instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants