diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-15 13:24:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-15 13:24:11 +0200 |
commit | b6e23355f1be8f02ab1e5284e65991382be76dbc (patch) | |
tree | 9cfb9d49eec87ac0ffca7b5d0e15df5a404cf37c /plugins/otr.py | |
parent | 6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (diff) | |
download | poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.tar.gz poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.tar.bz2 poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.tar.xz poezio-b6e23355f1be8f02ab1e5284e65991382be76dbc.zip |
Make pylint happy on plugins
It does not like dynamically defined attributes, unsurprisingly
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'] |