fix AttributeError
crash when using --import-mode=importlib
#5669
Loading
AttributeError
crash when using --import-mode=importlib
#5669