From 44f94412771bab7b6223282ec974130f39f2391a Mon Sep 17 00:00:00 2001 From: Maciej Bartkowiak Date: Thu, 5 Dec 2024 10:24:40 +0000 Subject: [PATCH] Adjust error severity for instruments database loading --- MDANSE_GUI/Src/MDANSE_GUI/Tabs/InstrumentTab.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MDANSE_GUI/Src/MDANSE_GUI/Tabs/InstrumentTab.py b/MDANSE_GUI/Src/MDANSE_GUI/Tabs/InstrumentTab.py index fb8dd587e..67b4af96c 100644 --- a/MDANSE_GUI/Src/MDANSE_GUI/Tabs/InstrumentTab.py +++ b/MDANSE_GUI/Src/MDANSE_GUI/Tabs/InstrumentTab.py @@ -14,7 +14,6 @@ # along with this program. If not, see . # import os -from functools import partial from qtpy.QtCore import Slot from qtpy.QtWidgets import QWidget @@ -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()