diff src/memory/sqlite.py @ 1099:1baa116501fa

memory (sqlite): fixes upgrade Deferred issue
author souliane <souliane@mailoo.org>
date Sun, 06 Jul 2014 21:54:07 +0200
parents 9378c80e3408
children 5e5661ab5c81
line wrap: on
line diff
--- a/src/memory/sqlite.py	Sun Jul 06 21:13:47 2014 +0200
+++ b/src/memory/sqlite.py	Sun Jul 06 21:54:07 2014 +0200
@@ -770,7 +770,7 @@
                     id_ = result[0][0]
                 except IndexError:
                     log.error("Profile of id %d is referenced in 'param_ind' but it doesn't exist!" % profile_id)
-                    return
+                    return defer.succeed(None)
 
                 sat_password = xmpp_password
                 d1 = PasswordHasher.hash(sat_password)