summaryrefslogtreecommitdiffstats
path: root/deluge/plugins/AutoAdd
diff options
context:
space:
mode:
authorLibravatarDaniel Baumann <daniel@debian.org>2025-02-17 07:41:07 +0100
committerLibravatarDaniel Baumann <daniel@debian.org>2025-02-17 07:41:07 +0100
commitfdc421bbb68ca6d214934b7ccde340826a09bcbe (patch)
tree4268cb5c733a3b88e7c5b765a30f5b9fd81c804e /deluge/plugins/AutoAdd
parent794b1404be2f9bdb3667d2cfb2dc7ad1fedf1e60 (diff)
Adding upstream version 2.1.2~dev0+20230529.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'deluge/plugins/AutoAdd')
-rw-r--r--deluge/plugins/AutoAdd/deluge_autoadd/core.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/deluge/plugins/AutoAdd/deluge_autoadd/core.py b/deluge/plugins/AutoAdd/deluge_autoadd/core.py
index 07ad53a..271d5f0 100644
--- a/deluge/plugins/AutoAdd/deluge_autoadd/core.py
+++ b/deluge/plugins/AutoAdd/deluge_autoadd/core.py
@@ -80,7 +80,6 @@ def check_input(cond, message):
class Core(CorePluginBase):
def enable(self):
-
# reduce typing, assigning some values to self...
self.config = deluge.configmanager.ConfigManager('autoadd.conf', DEFAULT_PREFS)
self.config.run_converter((0, 1), 2, self.__migrate_config_1_to_2)
@@ -271,7 +270,7 @@ class Core(CorePluginBase):
try:
filedump = self.load_torrent(filepath, magnet)
- except (OSError, EOFError, InvalidTorrentError) as ex:
+ except (OSError, EOFError, RuntimeError, InvalidTorrentError) as ex:
# If torrent is invalid, keep track of it so can try again on the next pass.
# This catches torrent files that may not be fully saved to disk at load time.
log.debug('Torrent is invalid: %s', ex)