--- a/eric6/Debugger/DebugUI.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Debugger/DebugUI.py Sun Apr 11 18:45:10 2021 +0200 @@ -1310,9 +1310,11 @@ self.ui.setDebugProfile() self.debugActGrp.setEnabled(True) return - elif res == E5MessageBox.Ignore: - if exceptionType not in self.excIgnoreList: - self.excIgnoreList.append(exceptionType) + elif ( + res == E5MessageBox.Ignore and + exceptionType not in self.excIgnoreList + ): + self.excIgnoreList.append(exceptionType) if self.lastAction != -1: if self.lastAction == 2: