mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue