changeset 1099:1baa116501fa

memory (sqlite): fixes upgrade Deferred issue
author souliane <souliane@mailoo.org>
date Sun, 06 Jul 2014 21:54:07 +0200
parents 77cd312d32c4
children 2be46f391cfa
files src/memory/sqlite.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)