mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 10:21:05 +03:00
update: fix running on trusty and things with old PIL/Pillow
This commit is contained in:
parent
9a524fa85d
commit
653d5fbd88
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ from .common import SdkToolsPopen
|
||||||
from .exception import BuildException, FDroidException
|
from .exception import BuildException, FDroidException
|
||||||
|
|
||||||
from PIL import Image, PngImagePlugin
|
from PIL import Image, PngImagePlugin
|
||||||
|
if hasattr(Image, 'DecompressionBombWarning'):
|
||||||
warnings.simplefilter('error', Image.DecompressionBombWarning)
|
warnings.simplefilter('error', Image.DecompressionBombWarning)
|
||||||
Image.MAX_IMAGE_PIXELS = 0xffffff # 4096x4096
|
Image.MAX_IMAGE_PIXELS = 0xffffff # 4096x4096
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue