kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
record runtime exceptions in debug log
rodzic
8d8d350068
commit
11082ff062
|
@ -123,6 +123,13 @@ class SweepWorker(QtCore.QRunnable):
|
|||
|
||||
@pyqtSlot()
|
||||
def run(self):
|
||||
try:
|
||||
self._run()
|
||||
except BaseException as exc:
|
||||
logger.exception("%s", exc)
|
||||
raise exc
|
||||
|
||||
def _run(self):
|
||||
logger.info("Initializing SweepWorker")
|
||||
self.running = True
|
||||
self.percentage = 0
|
||||
|
|
|
@ -79,8 +79,10 @@ def main():
|
|||
app = QtWidgets.QApplication(sys.argv)
|
||||
window = NanoVNASaver()
|
||||
window.show()
|
||||
app.exec_()
|
||||
|
||||
try:
|
||||
app.exec_()
|
||||
except BaseException as exc:
|
||||
logger.exception("%s", exc)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Ładowanie…
Reference in New Issue