forked from VimPlug/jedi
fixed an IndexError
This commit is contained in:
@@ -165,7 +165,10 @@ class ParserNode(object):
|
|||||||
try:
|
try:
|
||||||
el = module.imports[0]
|
el = module.imports[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
try:
|
||||||
el = module.returns[0]
|
el = module.returns[0]
|
||||||
|
except IndexError:
|
||||||
|
return self.parent.indent + 1
|
||||||
return el.start_pos[1]
|
return el.start_pos[1]
|
||||||
|
|
||||||
def _set_items(self, parser, set_parent=False):
|
def _set_items(self, parser, set_parent=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user