plugin XEP-0264: handle truncated files

This commit is contained in:
Goffi 2018-03-14 08:11:20 +01:00
commit 2560c9d3f2

View file

@ -36,6 +36,10 @@ try:
except:
raise exceptions.MissingModule(u"Missing module pillow, please download/install it from https://python-pillow.github.io")
# cf. https://stackoverflow.com/a/23575424
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
try:
from twisted.words.protocols.xmlstream import XMPPHandler
except ImportError: