password: do not abort on trying to remove a user without password account
This commit is contained in:
parent
b8fca01771
commit
3caa9927f4
|
@ -1574,7 +1574,10 @@ def handle_unused_accounts(publisher):
|
||||||
account.store()
|
account.store()
|
||||||
|
|
||||||
if (time.time() - user.last_seen) > 86400*remove_unused_account_delay:
|
if (time.time() - user.last_seen) > 86400*remove_unused_account_delay:
|
||||||
account = PasswordAccount.get_on_index(user.id, 'user_id')
|
try:
|
||||||
|
account = PasswordAccount.get_on_index(user.id, 'user_id')
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
user.remove_self()
|
user.remove_self()
|
||||||
account.remove_self()
|
account.remove_self()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue