mirror of
https://github.com/simple-login/app.git
synced 2025-09-14 10:34:36 +08:00
handle the case an alias is deleted in the meantime
This commit is contained in:
parent
e911bdf203
commit
78e3a4bf77
1 changed files with 4 additions and 0 deletions
4
cron.py
4
cron.py
|
@ -776,6 +776,10 @@ async def _hibp_check(api_key, queue):
|
|||
return
|
||||
|
||||
alias = Alias.get(alias_id)
|
||||
# an alias can be deleted in the meantime
|
||||
if not alias:
|
||||
return
|
||||
|
||||
LOG.d("Checking HIBP for %s", alias)
|
||||
|
||||
request_headers = {
|
||||
|
|
Loading…
Add table
Reference in a new issue