Do not set core to DeferredError (#9166)

This commit is contained in:
Hugo van Kemenade 2025-08-20 22:21:39 +03:00 committed by GitHub
commit 9f5d1f71a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,6 @@ try:
raise ImportError(msg) raise ImportError(msg)
except ImportError as v: except ImportError as v:
core = DeferredError.new(ImportError("The _imaging C module is not installed."))
# Explanations for ways that we know we might have an import error # Explanations for ways that we know we might have an import error
if str(v).startswith("Module use of python"): if str(v).startswith("Module use of python"):
# The _imaging C module is present, but not compiled for # The _imaging C module is present, but not compiled for