diff --git a/template/engine/session.py b/template/engine/session.py index 0ed55f6..b609376 100644 --- a/template/engine/session.py +++ b/template/engine/session.py @@ -126,7 +126,7 @@ class Session(object): logger.error(error) if result and "version" in result and "origin" in result and result["origin"] == METADATA["url"]: - if METADATA["version"] >= result["version"]: + if METADATA["version"] >= result["version"]: #Achtung. This only works because Python can compare Strings this way! self.guiWasSavedAsNSMVisible = result["guiWasSavedAsNSMVisible"] if "recordingEnabled" in result: #introduced in april 2020 self.recordingEnabled = result["recordingEnabled"] @@ -135,10 +135,10 @@ class Session(object): logger.info("Loading file complete") return Data.instanceFromSerializedData(parentSession=self, serializedData=result) else: - logger.warning(f"""{absoluteJsonFilePath} was saved with {result["version"]} but we need {METADATA["version"]}""") + logger.error(f"""{absoluteJsonFilePath} was saved with {result["version"]} but we need {METADATA["version"]}""") sysexit() else: - logger.warning(f"""Error. {absoluteJsonFilePath} not loaded. Not a sane {METADATA["name"]} file in json format""") + logger.error(f"""Error. {absoluteJsonFilePath} not loaded. Not a sane {METADATA["name"]} file in json format""") sysexit()