mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
handle the case an alias is deleted in the meantime
This commit is contained in:
parent
e911bdf203
commit
78e3a4bf77
4
cron.py
4
cron.py
@ -776,6 +776,10 @@ async def _hibp_check(api_key, queue):
|
|||||||
return
|
return
|
||||||
|
|
||||||
alias = Alias.get(alias_id)
|
alias = Alias.get(alias_id)
|
||||||
|
# an alias can be deleted in the meantime
|
||||||
|
if not alias:
|
||||||
|
return
|
||||||
|
|
||||||
LOG.d("Checking HIBP for %s", alias)
|
LOG.d("Checking HIBP for %s", alias)
|
||||||
|
|
||||||
request_headers = {
|
request_headers = {
|
||||||
|
Loading…
Reference in New Issue
Block a user