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

TypeError: expected str, bytes or os.PathLike object, not NoneType #92

Open
gabrierr opened this issue Dec 8, 2021 · 0 comments
Open

Comments

@gabrierr
Copy link

gabrierr commented Dec 8, 2021

Please help how to fix this

021-12-08T16:13:34.086421+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/concurrent/futures/thread.py", line 58, in run
2021-12-08T16:13:34.086421+00:00 app[worker.1]: result = self.fn(*self.args, **self.kwargs)
2021-12-08T16:13:34.086424+00:00 app[worker.1]: File "/app/bot/plugins/download.py", line 67, in _telegram_file
2021-12-08T16:13:34.086425+00:00 app[worker.1]: sent_message.edit(Messages.DOWNLOADED_SUCCESSFULLY.format(os.path.basename(file_path), humanbytes(os.path.getsize(file_path))))
2021-12-08T16:13:34.086425+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/posixpath.py", line 142, in basename
2021-12-08T16:13:34.086426+00:00 app[worker.1]: p = os.fspath(p)
2021-12-08T16:13:34.086426+00:00 app[worker.1]: TypeError: expected str, bytes or os.PathLike object, not NoneType

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

No branches or pull requests

1 participant