File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ async def debug_info(self, ctx):
34
34
dns_version = None
35
35
except Exception as e :
36
36
dns_version = e .__class__ .__qualname__
37
+ # tkinter already failed once due to incorrect installation (?)
38
+ pil_features = []
39
+ for feature in pilfeatures .get_supported ():
40
+ try :
41
+ feature = (feature , pilfeatures .version (feature ) or "N/A" )
42
+ except Exception as e :
43
+ feature = (feature , type (e ))
44
+ pil_features .append (feature )
37
45
# noinspection PyProtectedMember
38
46
await ctx .send (
39
47
chat .box (
@@ -56,13 +64,7 @@ async def debug_info(self, ctx):
56
64
("PIL version" , pilfeatures .version ("pil" )),
57
65
(
58
66
"PIL features" ,
59
- tabulate (
60
- [
61
- (feature , pilfeatures .version (feature ) or "N/A" )
62
- for feature in pilfeatures .get_supported ()
63
- ],
64
- tablefmt = "psql" ,
65
- ),
67
+ tabulate (pil_features , tablefmt = "psql" ),
66
68
),
67
69
],
68
70
tablefmt = "psql" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Leveler(
29
29
):
30
30
"""A level up thing with image generation!"""
31
31
32
- __version__ = "3.0.9 "
32
+ __version__ = "3.0.10 "
33
33
34
34
# noinspection PyMissingConstructor
35
35
def __init__ (self , bot : Red ):
You can’t perform that action at this time.
0 commit comments