File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
PrerequisitesCheckerGramplet Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 27
27
id = "Prerequisites Checker Gramplet" ,
28
28
name = _ ("Prerequisites Checker" ),
29
29
description = _ ("Prerequisites Checker Gramplet" ),
30
- version = '0.8.23 ' ,
30
+ version = '0.8.24 ' ,
31
31
gramps_target_version = '5.1' ,
32
32
status = STABLE ,
33
33
fname = "PrerequisitesCheckerGramplet.py" ,
Original file line number Diff line number Diff line change @@ -963,18 +963,20 @@ def check17_pillow(self):
963
963
import PIL
964
964
# from PIL import Image
965
965
try :
966
- #print(dir(PIL))
967
- pil_ver = str (PIL .VERSION )
968
- pillow_ver = str (PIL .PILLOW_VERSION )
969
- #print("Pillow version:" + pillow_ver)
966
+ pil_ver = PIL .__version__
970
967
except Exception :
971
- pil_ver = "Installed but does not supply version"
972
- pillow_ver = "old version of PIL with no version"
968
+ try :
969
+ pil_ver = str (PIL .PILLOW_VERSION )
970
+ except Exception :
971
+ try :
972
+ #print(dir(PIL))
973
+ pil_ver = str (PIL .VERSION )
974
+ except Exception :
975
+ pil_ver = "Installed but does not supply version"
973
976
except ImportError :
974
- pillow_ver = "Not found"
975
977
pil_ver = "Not found"
976
978
977
- result = "(PILLOW " + pillow_ver + ")(PIL " + pil_ver + ")"
979
+ result = "(PILLOW " + pil_ver + ")"
978
980
# End check
979
981
self .append_text (result )
980
982
You can’t perform that action at this time.
0 commit comments