Open
Description
What cog is this bug report for?
BetterUptime
What versions are you running?
Versions
╷ ╷ ╷
│ Current │ Latest │ Up to date?
╶───────────────┼─────────────┼─────────┼─────────────╴
This Cog │ 2.1.4 │ 2.1.4 │ 🟢
Bundled Utils │ b980728 │ b980728 │ 🟢
Red │ 3.5.14.dev4 │ 3.5.13 │ 🟢
╵ ╵ ╵
Describe the bug
Can't subtract offset
If there's an error, paste it here
(most recent call last):
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/cogs/CogManager/cogs/betteruptime/commands.py", line 38, in uptime_command
delta = datetime.datetime.utcnow() - self.bot.uptime
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
TypeError: can't subtract offset-naive and offset-aware datetimes
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1366, in invoke
await ctx.command.invoke(ctx)
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1029, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 244, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: can't subtract offset-naive and offset-aware datetimes