Created
May 3, 2017 23:35
-
-
Save JosXa/f69cfbc5fdbf939b6e825aaa478b18ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traceback (most recent call last): | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/inputfile.py", line 83, in __init__ | |
| self.mimetype = self.is_image(self.input_file_content) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/inputfile.py", line 164, in is_image | |
| raise TelegramError('Could not parse file content') | |
| telegram.error.TelegramError: Could not parse file content | |
| During handling of the above exception, another exception occurred: | |
| Traceback (most recent call last): | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/ext/jobqueue.py", line 291, in tick | |
| job.run(self.bot) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/ext/jobqueue.py", line 421, in run | |
| self.callback(bot, self) | |
| File "/home/joscha/projects/programmer-podcasts/bot.py", line 69, in start_crawling | |
| bot.sendAudio(chat_id, file_like_object) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/bot.py", line 125, in decorator | |
| result = func(self, *args, **kwargs) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/bot.py", line 417, in sendAudio | |
| **kwargs) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/bot.py", line 146, in _message_wrapper | |
| result = self._request.post(url, data, timeout=kwargs.get('timeout')) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/utils/request.py", line 236, in post | |
| data = InputFile(data) | |
| File "/usr/lib/python3.6/site-packages/python_telegram_bot-5.3.1-py3.6.egg/telegram/inputfile.py", line 87, in __init__ | |
| self.mimetype = mimetypes.guess_type(self.filename)[0] or DEFAULT_MIME_TYPE | |
| File "/usr/lib/python3.6/mimetypes.py", line 291, in guess_type | |
| return _db.guess_type(url, strict) | |
| File "/usr/lib/python3.6/mimetypes.py", line 116, in guess_type | |
| scheme, url = urllib.parse.splittype(url) | |
| File "/usr/lib/python3.6/urllib/parse.py", line 924, in splittype | |
| match = _typeprog.match(url) | |
| TypeError: expected string or bytes-like object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment