Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIFO] Error when running command #226

Open
mrPauwHaan opened this issue Jul 14, 2023 · 0 comments
Open

[FIFO] Error when running command #226

mrPauwHaan opened this issue Jul 14, 2023 · 0 comments
Assignees
Labels

Comments

@mrPauwHaan
Copy link

Describe the bug
I am getting this error when running [p]fifo addtrigger date

`Traceback (most recent call last):
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/cogs/CogManager/cogs/fifo/fifo.py", line 642, in fifo_trigger_date
delta_from_now: timedelta = job.next_run_time - datetime.now(job.next_run_time.tzinfo)
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'next_run_time'

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 1350, in invoke
await ctx.command.invoke(ctx)
File "/data/venv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 783, in invoke
await super().invoke(ctx)
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1642, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "/data/venv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 783, in invoke
await super().invoke(ctx)
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1642, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1023, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 238, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'next_run_time'`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants