summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-27 21:56:42 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-27 21:56:42 +0200
commit2ad278fa6daf640038b637dcf4b793ba71317f11 (patch)
tree65b2f92459dd56692c4f6591d6fe1db5e05a5a5e /module/FileDatabase.py
parentutf8 rs auth encoding (diff)
downloadpyload-2ad278fa6daf640038b637dcf4b793ba71317f11.tar.xz
little fixes
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 9064d5a03..4f1c1a541 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -183,6 +183,10 @@ class FileHandler:
"""delete package and all contained links"""
p = self.getPackage(id)
+
+ if not p:
+ return
+
e = RemoveEvent("pack", id, "collector" if not p.queue else "queue")
pyfiles = self.cache.values()