summaryrefslogtreecommitdiff
path: root/plugins/otr.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-15 13:24:11 +0200
committermathieui <mathieui@mathieui.net>2018-08-15 13:24:11 +0200
commitb6e23355f1be8f02ab1e5284e65991382be76dbc (patch)
tree9cfb9d49eec87ac0ffca7b5d0e15df5a404cf37c /plugins/otr.py
parent6e13b8b73572f9c0ac9b5c683b98a475afbeab38 (diff)
downloadpoezio-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.py4
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']