From 526df4ea095f68a925e78566ce40db6e56006b4e Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 9 May 2020 23:39:57 +0200 Subject: [PATCH] fix DeletedALias --- app/alias_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/alias_utils.py b/app/alias_utils.py index 1c8090b4..5111da11 100644 --- a/app/alias_utils.py +++ b/app/alias_utils.py @@ -61,7 +61,7 @@ def try_auto_create_directory(address: str) -> Optional[Alias]: return None # if alias has been deleted before, do not auto-create it - if DeletedAlias.get_by(email=address, user_id=directory.user_id): + if DeletedAlias.get_by(email=address): LOG.warning( "Alias %s was deleted before, cannot auto-create using directory %s, user %s", address,