Skip to content

Commit

Permalink
Fix small bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
palkeo committed May 13, 2020
1 parent 1e844f4 commit 0ecc4f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pano/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,11 @@ def _run(self, start, safe, stack, condition):
return [("invalid", "jump")]

while True:
line = lines[i]
try:
line = lines[i]
except KeyError:
trace.append(("invalid", "jumpdest"))
return trace

res = self.handle_jumps(trace, line, condition)
if res is not None:
Expand Down

0 comments on commit 0ecc4f7

Please sign in to comment.