summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 4757831e7..1c2667732 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -670,6 +670,8 @@ class FileDatabaseBackend(Thread):
self.c.execute('SELECT id,url,name,size,status,error,plugin,package,linkorder FROM links WHERE id=?', (str(id), ))
data = {}
r = self.c.fetchone()
+ if not r:
+ return None
data[str(r[0])] = {
'url': r[1],
'name': r[2],