[PR #13029/8cff1286 backport][8.3.x] fix AttributeError
crash when using --import-mode=importlib
#5692
Loading
AttributeError
crash when using --import-mode=importlib
#5692