Also remove the gui blocking from the error handler

This commit is contained in:
Veronica K. B. Olsen
2020-12-06 13:21:47 +01:00
parent 33c2dda471
commit cdeee65505
2 changed files with 19 additions and 25 deletions
+1 -3
View File
@@ -138,7 +138,6 @@ class NWErrorMessage(QDialog):
def exceptionHandler(exType, exValue, exTrace):
"""Function to catch unhandled global exceptions.
"""
import nw
import logging
from traceback import print_tb
from PyQt5.QtWidgets import qApp
@@ -160,8 +159,7 @@ def exceptionHandler(exType, exValue, exTrace):
errMsg = NWErrorMessage(nwGUI)
errMsg.setMessage(exType, exValue, exTrace)
if nw.CONFIG.showGUI:
errMsg.exec_()
errMsg.exec_()
try:
# Try a controlled shudown