From b6e23355f1be8f02ab1e5284e65991382be76dbc Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 Aug 2018 13:24:11 +0200 Subject: Make pylint happy on plugins It does not like dynamically defined attributes, unsurprisingly --- plugins/otr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/otr.py') 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'] -- cgit v1.2.3