Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/UI
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-03-18 13:17:23 +0300
committerJaime van Kessel <nallath@gmail.com>2020-03-18 13:17:23 +0300
commita26de5ce796fac72fee15d276c2dc719af51d6c4 (patch)
tree307004216349e579ca70872f9438073e3378c7ea /cura/UI
parentced25adc2bbcddb435a805be0641fc9e5d777acd (diff)
Gracefully handle the sitation if the changelog was not found
CURA-4R
Diffstat (limited to 'cura/UI')
-rw-r--r--cura/UI/TextManager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cura/UI/TextManager.py b/cura/UI/TextManager.py
index 86838a0b48..dbe7940f26 100644
--- a/cura/UI/TextManager.py
+++ b/cura/UI/TextManager.py
@@ -28,7 +28,11 @@ class TextManager(QObject):
def _loadChangeLogText(self) -> str:
# Load change log texts and organize them with a dict
- file_path = Resources.getPath(Resources.Texts, "change_log.txt")
+ try:
+ file_path = Resources.getPath(Resources.Texts, "change_log.txt")
+ except FileNotFoundError:
+ # I have no idea how / when this happens, but we're getting crash reports about it.
+ return ""
change_logs_dict = {} # type: Dict[Version, Dict[str, List[str]]]
with open(file_path, "r", encoding = "utf-8") as f:
open_version = None # type: Optional[Version]