diff options
Diffstat (limited to 'deluge/plugins/pluginbase.py')
-rw-r--r-- | deluge/plugins/pluginbase.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deluge/plugins/pluginbase.py b/deluge/plugins/pluginbase.py index 5dda2f077..8d5515690 100644 --- a/deluge/plugins/pluginbase.py +++ b/deluge/plugins/pluginbase.py @@ -14,7 +14,6 @@ log = logging.getLogger(__name__) class PluginBase(component.Component): - update_interval = 1 def __init__(self, name): @@ -35,7 +34,10 @@ class CorePluginBase(PluginBase): log.debug('CorePlugin initialized..') def __del__(self): - component.get('RPCServer').deregister_object(self) + try: + component.get('RPCServer').deregister_object(self) + except KeyError: + log.debug('RPCServer already deregistered') def enable(self): super().enable() @@ -57,7 +59,6 @@ class Gtk3PluginBase(PluginBase): class WebPluginBase(PluginBase): - scripts = [] debug_scripts = [] |