diff --git a/.pylintrc b/.pylintrc index 68f20c42e..254c7ebc8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -68,7 +68,10 @@ disable=missing-docstring, invalid-name, wrong-import-position, wrong-import-ord R, unused-argument, fixme, protected-access, import-error, unused-variable, global-statement, attribute-defined-outside-init, arguments-differ, - no-init, super-init-not-called, broad-except + super-init-not-called, + + # The following warnings should eventually be enabled: + broad-except [REPORTS] diff --git a/deluge/httpdownloader.py b/deluge/httpdownloader.py index 9928afe2b..b245c6121 100644 --- a/deluge/httpdownloader.py +++ b/deluge/httpdownloader.py @@ -198,7 +198,7 @@ def _download_file(url, filename, callback=None, headers=None, force_filename=Fa except ImportError: ctx_factory = ssl.ClientContextFactory() else: - class TLSSNIContextFactory(ssl.ClientContextFactory): + class TLSSNIContextFactory(ssl.ClientContextFactory): # pylint: disable=no-init """ A custom context factory to add a server name for TLS connections. """ diff --git a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py index 4bc994848..f225e87bf 100644 --- a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py +++ b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py @@ -73,6 +73,9 @@ SND_EVENT, SND_EVENT_DOC, SND_NAME, SND_PATH = range(4) class GtkUiNotifications(CustomNotifications): + def __init__(self, plugin_name=None): + CustomNotifications.__init__(self, plugin_name) + def enable(self): CustomNotifications.enable(self) self.register_custom_blink_notification(