plugin XEP-0264: handle truncated files
This commit is contained in:
parent
2e18724e7b
commit
2560c9d3f2
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue