summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-02-05 18:41:59 +0100
committerGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-02-05 18:41:59 +0100
commit09b692852ae556cb3f40ffb3f607106faecd5758 (patch)
tree8403ef886e430a7ed19ff1017dfc3fee1d55ae6a
parentset interval smaller (diff)
downloadpyload-09b692852ae556cb3f40ffb3f607106faecd5758.tar.xz
[ExtractArchive] Error Handling when broken ExtractArchive was used
-rw-r--r--module/plugins/hooks/ExtractArchive.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index b52fa026b..4756d359c 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -63,7 +63,10 @@ class ArchiveQueue(object):
def get(self):
- return [int(pid) for pid in self.plugin.getStorage("ExtractArchive:%s" % self.storage, "").decode('base64').split()]
+ try:
+ return [int(pid) for pid in self.plugin.getStorage("ExtractArchive:%s" % self.storage, "").decode('base64').split()]
+ except Exception:
+ return []
def set(self, value):