Fix obvious UnboundLocalError.
This commit is contained in:
1 parent
78bd775889
commit
b26f51ded2
1 file changed
+1
@@ -99,6 +99,7 @@ def _paths_from_call_expression(module_path, call):
|
||||
return
|
||||
cmd = names[2]
|
||||
exe = call.next
|
||||
path = None
|
||||
if cmd == 'insert' and len(exe) == 2:
|
||||
path = _paths_from_insert(module_path, exe)
|
||||
elif cmd == 'append' and len(exe) == 1:
|
||||
|
||||
Reference in new issue
Block a user