mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
fixed ModuleNotFound error
This commit is contained in:
@@ -244,7 +244,10 @@ def get_definition(source, line, column, source_path):
|
||||
for s in scopes.copy():
|
||||
if isinstance(s, imports.ImportPath):
|
||||
scopes.remove(s)
|
||||
scopes.update(resolve_import_paths(set(s.follow())))
|
||||
try:
|
||||
scopes.update(resolve_import_paths(set(s.follow())))
|
||||
except imports.ModuleNotFound:
|
||||
pass
|
||||
return scopes
|
||||
|
||||
pos = (line, column)
|
||||
|
||||
Reference in New Issue
Block a user