Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ignoring exception in on_command_error
- Traceback (most recent call last):
- File "/home/container/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
- ret = await coro(*args, **kwargs)
- File "/home/container/tickets.py", line 134, in close
- subprocess.Popen([path, 'export', '-t', 'my_bot_token', '-b', '-c', str(channel.id), '-o', file_path, '--dateformat', 'u'], shell=True).wait()
- File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__
- self._execute_child(args, executable, preexec_fn, close_fds,
- File "/usr/local/lib/python3.8/subprocess.py", line 1641, in _execute_child
- self.pid = _posixsubprocess.fork_exec(
- TypeError: expected str, bytes or os.PathLike object, not function
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/home/container/.local/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
- await coro(*args, **kwargs)
- File "/home/container/main.py", line 51, in on_command_error
- raise error
- File "/home/container/.local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
- await ctx.command.invoke(ctx)
- File "/home/container/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
- await injected(*ctx.args, **ctx.kwargs)
- File "/home/container/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
- raise CommandInvokeError(exc) from exc
- discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: expected str, bytes or os.PathLike object, not function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement