Skip to content

Commit

Permalink
Adjust error severity for instruments database loading
Browse files Browse the repository at this point in the history
  • Loading branch information
MBartkowiakSTFC committed Dec 5, 2024
1 parent bc699ef commit 44f9441
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MDANSE_GUI/Src/MDANSE_GUI/Tabs/InstrumentTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
import os
from functools import partial

from qtpy.QtCore import Slot
from qtpy.QtWidgets import QWidget
Expand Down Expand Up @@ -55,14 +54,14 @@ def __init__(self, *args, **kwargs):
try:
self._view.load_from_file(builtin_file, keep_backups=True)
except Exception as e:
LOG.error(f"Could not load instruments from {builtin_file}: {e}")
LOG.warning(f"Could not load instruments from {builtin_file}: {e}")
filename = os.path.join(
PLATFORM.application_directory(), "InstrumentDefinitions.toml"
)
try:
self._view.load_from_file(filename)
except Exception as e:
LOG.error(f"Could not load instruments from {filename}: {e}")
LOG.warning(f"Could not load instruments from {filename}: {e}")
for instrument in self._model._nodes.values():
if instrument is not None:
instrument.update_item()
Expand Down

0 comments on commit 44f9441

Please sign in to comment.