From 8aa6c9c4157c708020743c63814ba70fd365db67 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Mon, 14 Oct 2013 21:28:14 +0200 Subject: gui: Don't crash read-all on chips without signature bytes Signed-off-by: Michael Buesch --- toprammer-gui | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3