Skip to content

Commit 6ce4b8f

Browse files
authored
[Leveler] Fix dep warnings part 3 (#184)
* ModuleNotFound -> AttributeError * ModuleNotFoundError -> AttributeError
1 parent b34e3a7 commit 6ce4b8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

leveler/def_imgen_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from PIL import Image
2424

2525
LANCZOS = Image.Resampling.LANCZOS
26-
except ModuleNotFoundError:
26+
except AttributeError:
2727
from PIL.Image import LANCZOS
2828

2929
try:

leveler/image_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from PIL import Image
2828

2929
LANCZOS = Image.Resampling.LANCZOS
30-
except ModuleNotFoundError:
30+
except AttributeError:
3131
from PIL.Image import LANCZOS
3232

3333

leveler/leveler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Leveler(
2929
):
3030
"""A level up thing with image generation!"""
3131

32-
__version__ = "3.0.7"
32+
__version__ = "3.0.8"
3333

3434
# noinspection PyMissingConstructor
3535
def __init__(self, bot: Red):

0 commit comments

Comments
 (0)