mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
py/builtinimport: Change relative import's ValueError to ImportError.
Following CPython change, see https://bugs.python.org/issue37444. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -7,5 +7,5 @@ print(bar)
|
||||
# attempted relative import beyond top-level package
|
||||
try:
|
||||
from .... import mod1
|
||||
except ValueError:
|
||||
print("ValueError")
|
||||
except ImportError:
|
||||
print("ImportError")
|
||||
|
||||
Reference in New Issue
Block a user