fully fix decorators, thanks calle

This commit is contained in:
dni 2022-07-20 10:24:40 +02:00
parent 68a195952a
commit e96944a4fa

View File

@ -171,9 +171,10 @@ async def get_key_type(
if e.status_code == HTTPStatus.BAD_REQUEST: if e.status_code == HTTPStatus.BAD_REQUEST:
raise raise
if e.status_code == HTTPStatus.UNAUTHORIZED: if e.status_code == HTTPStatus.UNAUTHORIZED:
return WalletTypeInfo(2, None) return WalletTypeInfo(2, Wallet())
except: except:
raise raise
return wallet
async def require_admin_key( async def require_admin_key(