mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Add import exception handler.
This commit is contained in:
1 parent
ef583fc9bb
commit
2d17d8cfe4
3 files changed
+5
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user