mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Fix IndexError in python interpreter
This commit is contained in:
parent
cbf2228483
commit
5d0fdd296a
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ while True :
|
|||
if (nhooks > 0):
|
||||
to_run_hooks = code.body[-nhooks:]
|
||||
to_run_exec, to_run_single = (code.body[:-(nhooks + 1)],
|
||||
[code.body[-(nhooks + 1)]])
|
||||
[code.body[-(nhooks + 1)]] if len(code.body) > nhooks else [])
|
||||
try:
|
||||
for node in to_run_exec:
|
||||
mod = ast.Module([node])
|
||||
|
|
|
|||
Loading…
Reference in a new issue