diff options
Diffstat (limited to 'plugins/otr.py')
-rw-r--r-- | plugins/otr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/otr.py b/plugins/otr.py index 1e5944a8..9c80f390 100644 --- a/plugins/otr.py +++ b/plugins/otr.py @@ -637,8 +637,8 @@ class Plugin(BasePlugin): return except ErrorReceived as err: # Received an OTR error - format_dict['err'] = err.args[0].error.decode( - 'utf-8', errors='replace') + proto_error = err.args[0].error # pylint: disable=no-member + format_dict['err'] = proto_error.decode('utf-8', errors='replace') tab.add_message(OTR_ERROR % format_dict, typ=0) del msg['body'] del msg['html'] |