mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-24 14:21:25 +08:00
fixed star import invalidation exception
This commit is contained in:
@@ -288,9 +288,9 @@ def cache_star_import(func):
|
||||
def invalidate_star_import_cache(module, only_main=False):
|
||||
""" Important if some new modules are being reparsed """
|
||||
try:
|
||||
mods = star_import_cache[module]
|
||||
t, mods = star_import_cache[module]
|
||||
|
||||
for t, m in mods:
|
||||
for m in mods:
|
||||
invalidate_star_import_cache(m, only_main=True)
|
||||
|
||||
del star_import_cache[module]
|
||||
|
||||
Reference in New Issue
Block a user