mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 13:19:00 +08:00
Don't crash on NotADirectoryError or PermissionError when trying to load custom intent icons
CURA-9709
This commit is contained in:
parent
4a38439886
commit
fec5ebb709
@ -115,7 +115,7 @@ class IntentSelectionModel(ListModel):
|
||||
try:
|
||||
icon = QUrl.fromLocalFile(
|
||||
Resources.getPath(cura.CuraApplication.CuraApplication.ResourceTypes.ImageFiles, icon))
|
||||
except FileNotFoundError:
|
||||
except (FileNotFoundError, NotADirectoryError, PermissionError):
|
||||
Logger.log("e", f"Icon file for intent {intent_name} not found.")
|
||||
icon = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user