Archived
1
0
Fork 0

Update __init__.py

This commit is contained in:
多羅狼 2023-04-04 23:24:51 +08:00 committed by GitHub
parent ead7d22877
commit a871fbd2a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ async def _(msg: Bot.MessageSession):
if res[0:6] == 'Result':
await msg.finish(f'{(expr)} = {res[7:]}')
else:
await msg.finish(msg.locale.t("calc.message.invalid", exp={res[7:]}))
await msg.finish(msg.locale.t("calc.message.invalid", expr=res[7:]))
else:
Logger.error(f'calc.py exited with code {p.returncode}')
try: