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'`
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'`