Skip to content

Commit f1698cf

Browse files
committed
add previous recursion check back in
1 parent cdf8391 commit f1698cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aikido_zen/sinks/builtins_import.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ def _import(func, instance, args, kwargs, return_value):
2424
# Make sure the name exists
2525
return
2626
name = name.split(".")[0] # Remove submodules
27+
if name == "importlib" or name == "importlib_metadata":
28+
# Avoid circular dependencies, this is a double safety-check for if contextvar check fails.
29+
return
2730

2831
if PackagesStore.get_package(name):
2932
return

0 commit comments

Comments
 (0)