Geometry: Add import exception handler.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-05-13 14:44:15 +02:00
1 parent ef583fc9bb
commit 2d17d8cfe4
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -19,7 +19,7 @@
import logging
from copy import deepcopy
from tools import trace, timer
from tools import trace, timer, logger_exception
from PyQt5.QtWidgets import (
QMessageBox, QUndoCommand, QUndoStack,
@@ -214,6 +214,7 @@ class ImportCommand(QUndoCommand):
self._profiles = self._reach.import_geometry(self._filename)
self._profiles.reverse()
except Exception as e:
logger_exception(e)
exception_message_box(e)
else:
for profile in self._profiles: