diff --git a/pyzabbix/__init__.py b/pyzabbix/__init__.py index 164708c..1051149 100644 --- a/pyzabbix/__init__.py +++ b/pyzabbix/__init__.py @@ -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']