mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Gracefully handle the sitation if the changelog was not found
CURA-4R
This commit is contained in:
parent
ced25adc2b
commit
a26de5ce79
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ class TextManager(QObject):
|
|||
|
||||
def _loadChangeLogText(self) -> str:
|
||||
# Load change log texts and organize them with a dict
|
||||
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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue