chore: mypy fixes
This commit is contained in:
parent
d0f38346e3
commit
bc1af610db
7 changed files with 27 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue