fix logging
This commit is contained in:
parent
c239aadfaf
commit
64cf863437
1
bot.py
1
bot.py
@ -78,6 +78,7 @@ class BotClient(discord.Client):
|
||||
calc = await self._calculate(args)
|
||||
await message.reply(content=calc.strip())
|
||||
except Exception as e:
|
||||
_log.exception("running calculation")
|
||||
await message.reply(
|
||||
content="```\n" + str(e) + "\n```", delete_after=30
|
||||
)
|
||||
|
4
calc.js
4
calc.js
@ -121,9 +121,7 @@ function* iterate(arr) {
|
||||
function unwrapToken(type, token) {
|
||||
assert(
|
||||
token.tokenType.name == type,
|
||||
"expected token %s, got %s",
|
||||
type,
|
||||
token.tokenType.name
|
||||
`expected token ${type}, got ${token.tokenType.name}`
|
||||
);
|
||||
return token.image;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user