Fix crash when importing a module with errors twice (#3497)
When a module fails to parse as a library, `load_library` cached the invalid block. A second import/include of the same module would find the cached invalid block and pass it to `block_bind_library`, triggering the assertion failure. Skip caching the block when there are parse errors to avoid this problem.
I
itchyny committed
3cd7e0da00f2a65e544d8f8bb8a42edf822bb5a2
Parent: ed3c7f2
Committed by GitHub <noreply@github.com>
on 3/6/2026, 6:32:29 AM