Skip to content

Commit

Permalink
again fixes python3.2 while maintaining python 2.x utf8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
neothematrix committed Dec 11, 2015
1 parent 8a10cc4 commit 5b2ac78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyzabbix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def do_request(self, method, params=None):
if 'error' in response_json: # some exception
if 'data' not in response_json['error']: # some errors don't contain 'data': workaround for ZBX-9340
response_json['error']['data'] = "No data"
msg = u"Error {code}: {message}, {data}".format(
msg = "Error {code}: {message}, {data}".format(
code=response_json['error']['code'],
message=response_json['error']['message'],
data=response_json['error']['data']
Expand Down

0 comments on commit 5b2ac78

Please sign in to comment.