summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2013-10-14 21:28:14 +0200
committerMichael Buesch <m@bues.ch>2013-10-14 21:28:14 +0200
commit8aa6c9c4157c708020743c63814ba70fd365db67 (patch)
tree8416fe17c4467a22efd876d57c5ed947b6c3a437
parent46d3c24fc0a97ffeca5e33c19843a10870d7c9fc (diff)
downloadtoprammer-8aa6c9c4157c708020743c63814ba70fd365db67.tar.xz
toprammer-8aa6c9c4157c708020743c63814ba70fd365db67.zip
gui: Don't crash read-all on chips without signature bytes
Signed-off-by: Michael Buesch <m@bues.ch>
-rwxr-xr-xtoprammer-gui5
1 files changed, 4 insertions, 1 deletions
diff --git a/toprammer-gui b/toprammer-gui
index f1ba839..946905a 100755
--- a/toprammer-gui
+++ b/toprammer-gui
@@ -2828,7 +2828,10 @@ class MainWindow(QMainWindow):
images = self.__readCallChain_GetResultImages(topCallList)
self.bufferTab.setupBuffers(self.chip.getSupportFlags())
self.bufferTab.loadBuffers(images)
- self.bufferTab.infoBuffer.setChipSignature(images["signature"])
+ try:
+ self.bufferTab.infoBuffer.setChipSignature(images["signature"])
+ except KeyError:
+ pass
elif op.op == Operation.OP_ERASE:
pass # Nothing to do
elif op.op == Operation.OP_WRITEPROG:
bues.ch cgit interface