summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-13 13:09:21 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-13 13:09:21 +0200
commitdae3ed77f3a36ba81c051bc3f47bdaeabcc4f129 (patch)
tree1fbb1516d50783f9d246fc31402c12d00dbcd209 /module/FileDatabase.py
parentunrar hook :D, account fix, other fixes (diff)
downloadpyload-dae3ed77f3a36ba81c051bc3f47bdaeabcc4f129.tar.xz
recaptcha + new crypter lof.cc
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],