aboutsummaryrefslogtreecommitdiffstats
path: root/deluge/plugins/pluginbase.py
diff options
context:
space:
mode:
authorLibravatarDaniel Baumann <daniel@debian.org>2025-02-17 07:41:18 +0100
committerLibravatarDaniel Baumann <daniel@debian.org>2025-02-17 07:41:18 +0100
commit0851c49e02a321c7d688b6542a90ff8a71f498c8 (patch)
tree67d787608695391e5edc2eb245b3943302ba1734 /deluge/plugins/pluginbase.py
parent4e4bfe759938fe0e17da559edfeee7b73969daf3 (diff)
Merging upstream version 2.1.2~dev0+20230529.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'deluge/plugins/pluginbase.py')
-rw-r--r--deluge/plugins/pluginbase.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/deluge/plugins/pluginbase.py b/deluge/plugins/pluginbase.py
index 5dda2f0..8d55156 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 = []