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发送表情导致telegrambot崩溃 #84

Open
Ares-X opened this issue Jan 16, 2018 · 0 comments
Open

Telegram发送表情导致telegrambot崩溃 #84

Ares-X opened this issue Jan 16, 2018 · 0 comments

Comments

@Ares-X
Copy link

Ares-X commented Jan 16, 2018

Traceback报错:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/PIL/PngImagePlugin.py", line 724, in _save
    rawmode, mode = _OUTMODES[mode]
KeyError: 'RGBX'

During handling of the above exception, another exception occurred:

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.5/dist-packages/PIL/Image.py", line 1930, in save
    save_handler(self, fp, filename)
  File "/usr/local/lib/python3.5/dist-packages/PIL/PngImagePlugin.py", line 726, in _save
    raise IOError("cannot write mode %s as PNG" % mode)
OSError: cannot write mode RGBX as PNG
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