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

telegram.py ValueError: I/O operation on closed file. #81

Open
simonsmh opened this issue Jan 11, 2018 · 0 comments
Open

telegram.py ValueError: I/O operation on closed file. #81

simonsmh opened this issue Jan 11, 2018 · 0 comments

Comments

@simonsmh
Copy link
Contributor

Traceback (most recent call last):
File "/root/fishroom/fishroom/runner.py", line 37, in wrapper
f(*args, **kwargs)
File "/root/fishroom/fishroom/telegram.py", line 692, in Telegram2FishroomThread
for msg in tg.message_stream(id_blacklist=tele_me):
File "/root/fishroom/fishroom/telegram.py", line 540, in message_stream
telemsg = self.parse_jmsg(jmsg)
File "/root/fishroom/fishroom/telegram.py", line 372, in parse_jmsg
url, err = self.upload_sticker(file_id)
File "/root/fishroom/fishroom/telegram.py", line 284, in upload_sticker
photo = webp2png(sticker)
File "/root/fishroom/fishroom/helpers.py", line 50, in webp2png
im.save(out, "PNG")
File "/usr/local/lib/python3.6/dist-packages/PIL/Image.py", line 1895, in save
self.load()
File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFile.py", line 205, in load
seek(offset)
ValueError: I/O operation on closed file.

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