Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-04-18 15:08:32 +08:00 committed by GitHub
parent 5b3d738d8d
commit cd4ccc20e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,4 +47,5 @@ async def _(msg: Bot.MessageSession):
current_time = datetime.datetime.now().strftime("%Y-%m-%d")
await msg.finish(f'{amount} {base_currency} -> {exchange_rate} {target_currency}\n{current_time}')
else:
raise NoReportException(f"{response.text}")
error_type = ', '.join(response.json()['error-type'].keys())
raise NoReportException(f"{error_type}")