summaryrefslogtreecommitdiffstats
path: root/module/database/FileDatabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/database/FileDatabase.py')
-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")