Skip to content

Commit

Permalink
Fix for restarting the disassembly when the disassembly hasn't yet re…
Browse files Browse the repository at this point in the history
…ached the request to restart
  • Loading branch information
robmcmullen committed Jan 17, 2016
1 parent 5e2e8cd commit a3626a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion omnivore/tasks/hex_edit/disassembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ def set_editor(self, editor):
self.disassemble_next()

def restart_disassembly(self, index):
next_row = self.index_to_row[index]
try:
next_row = self.index_to_row[index]
except IndexError:
# requesting an index that has yet to be disassembled, so it will
# get there when it gets there! Be patient!
return

# don't reset starting point if the requested index is already in the
# region to be rebuilt
Expand Down

0 comments on commit a3626a2

Please sign in to comment.