Added logger messages to match init()

This commit is contained in:
Andrew Murray 2026-01-22 18:48:38 +11:00
parent a6b36f0b6b
commit 76d3116ef0

View File

@ -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