summaryrefslogtreecommitdiffstats
path: root/module/database
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-14 14:26:29 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-14 14:26:29 +0100
commite811e55a8e8e451c6fc7b723f26a6351f997a14e (patch)
tree026b350bd54b40aa73ec115ff9b83800351e1a8d /module/database
parentlittle SO fix (diff)
downloadpyload-e811e55a8e8e451c6fc7b723f26a6351f997a14e.tar.xz
some parts of cli working again
Diffstat (limited to 'module/database')
-rw-r--r--module/database/FileDatabase.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py
index 66dfd3c6c..c539bcaf6 100644
--- a/module/database/FileDatabase.py
+++ b/module/database/FileDatabase.py
@@ -184,11 +184,10 @@ class FileHandler:
"""deletes links"""
f = self.getFile(id)
- pid = f.packageid
-
if not f:
return None
-
+
+ pid = f.packageid
e = RemoveEvent("file", id, "collector" if not f.package().queue else "queue")