mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-20 15:57:05 +08:00
Fix: 'NoneType' object has no attribute 'isinstance'
This commit is contained in:
1 parent
3620633b2a
commit
636b10ab8e
1 file changed
+3
-1
+3
-1
@@ -318,7 +318,9 @@ def find_name(scope, name_str, position=None, search_global=False,
|
|||||||
exc = pr.Class, pr.Function
|
exc = pr.Class, pr.Function
|
||||||
until = lambda: par.parent.parent.get_parent_until(exc)
|
until = lambda: par.parent.parent.get_parent_until(exc)
|
||||||
|
|
||||||
if par.isinstance(pr.Flow):
|
if par is None:
|
||||||
|
pass
|
||||||
|
elif par.isinstance(pr.Flow):
|
||||||
if par.command == 'for':
|
if par.command == 'for':
|
||||||
result += handle_for_loops(par)
|
result += handle_for_loops(par)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user