-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# © 2024 bicobus <[email protected]> | ||
from __future__ import annotations | ||
|
||
import logging | ||
import os | ||
import re | ||
from collections import namedtuple | ||
|
@@ -56,6 +57,7 @@ | |
wxicon, | ||
) | ||
|
||
logger = logging.getLogger(__name__) | ||
style = get_style_by_name("default") | ||
|
||
if wx.Platform == '__WXMSW__': | ||
|
@@ -1372,6 +1374,10 @@ def __init__(self, parent, data, *args, **kwargs): | |
|
||
|
||
# - Main Window --- | ||
class ModuleProcessingError(Exception): | ||
... | ||
|
||
|
||
class Legend(wx.BoxSizer): | ||
def __init__(self, parent, text, color, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
@@ -1597,7 +1603,11 @@ def pulse(m=None): | |
init_xsdfile(conf.Read("CE_XSDFILE")) | ||
pulse("Big Bad XML...") | ||
init_bigbadxml() | ||
process_module(xmlfiles, pulse) | ||
try: | ||
process_module(xmlfiles, pulse) | ||
except Exception as e: | ||
logger.error(e) | ||
raise ModuleProcessingError from e | ||
dialog.Close() | ||
|
||
def on_reset_event(self, event): | ||
|