chore: mypy fixes

This commit is contained in:
Vlad Stan 2023-02-15 18:18:46 +02:00
parent d0f38346e3
commit bc1af610db
7 changed files with 27 additions and 11 deletions

View file

@ -185,6 +185,11 @@ async def api_get_accounts(
try:
# make sure the user has access to the relay
relay = await get_relay(wallet.wallet.user, relay_id)
if not relay:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND,
detail="Relay not found",
)
accounts = await get_accounts(relay.id, allowed, blocked)
return accounts
except ValueError as ex: