mirror of
https://github.com/python-pillow/Pillow.git
synced 2026-01-28 11:05:49 +03:00
Added logger messages to match init()
This commit is contained in:
parent
a6b36f0b6b
commit
76d3116ef0
|
|
@ -414,9 +414,11 @@ def _import_plugin_for_extension(ext: str | bytes) -> bool:
|
|||
return False
|
||||
|
||||
try:
|
||||
logger.debug("Importing %s", plugin)
|
||||
__import__(f"PIL.{plugin}", globals(), locals(), [])
|
||||
return True
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
logger.debug("Image: failed to import %s: %s", plugin, e)
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user