mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
update: fix running on trusty and things with old PIL/Pillow
This commit is contained in:
parent
9a524fa85d
commit
653d5fbd88
@ -46,7 +46,8 @@ from .common import SdkToolsPopen
|
||||
from .exception import BuildException, FDroidException
|
||||
|
||||
from PIL import Image, PngImagePlugin
|
||||
warnings.simplefilter('error', Image.DecompressionBombWarning)
|
||||
if hasattr(Image, 'DecompressionBombWarning'):
|
||||
warnings.simplefilter('error', Image.DecompressionBombWarning)
|
||||
Image.MAX_IMAGE_PIXELS = 0xffffff # 4096x4096
|
||||
|
||||
METADATA_VERSION = 21
|
||||
|
Loading…
Reference in New Issue
Block a user