mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-18 04:02:25 +03:00
BUG: AttributeError: 'function' object has no attribute 'im_func' on Python 3
This commit is contained in:
parent
172e0d8bdb
commit
6e38a86a8e
|
@ -40,7 +40,10 @@ class WebPImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
def _getexif(self):
|
def _getexif(self):
|
||||||
from PIL.JpegImagePlugin import JpegImageFile
|
from PIL.JpegImagePlugin import JpegImageFile
|
||||||
return JpegImageFile._getexif.im_func(self)
|
try:
|
||||||
|
return JpegImageFile._getexif.im_func(self)
|
||||||
|
except AttributeError:
|
||||||
|
return JpegImageFile._getexif(self)
|
||||||
|
|
||||||
|
|
||||||
def _save(im, fp, filename):
|
def _save(im, fp, filename):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user