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
diff options
context:
space:
mode:
authorKostas Karmas <konskarm@gmail.com>2021-04-16 17:35:44 +0300
committerKostas Karmas <konskarm@gmail.com>2021-04-16 17:35:44 +0300
commit00ade8be3a50b8465847204f1b116416b008bb4e (patch)
treee5804c6468329c5f3ca1b55fe0b08b048f5a1a06 /plugins/3MFReader
parentdf5c52d1c60435a8b61051f3a40fa9a52e7ae1df (diff)
Fix crashing if the quality_type_to_apply is None
Fixes sentry issue CURA-24D
Diffstat (limited to 'plugins/3MFReader')
-rwxr-xr-xplugins/3MFReader/ThreeMFWorkspaceReader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/3MFReader/ThreeMFWorkspaceReader.py b/plugins/3MFReader/ThreeMFWorkspaceReader.py
index 1c0088dd98..c4170ebfcf 100755
--- a/plugins/3MFReader/ThreeMFWorkspaceReader.py
+++ b/plugins/3MFReader/ThreeMFWorkspaceReader.py
@@ -1157,7 +1157,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
return
machine_manager.setQualityChangesGroup(quality_changes_group, no_dialog = True)
else:
- self._quality_type_to_apply = self._quality_type_to_apply.lower()
+ self._quality_type_to_apply = self._quality_type_to_apply.lower() if self._quality_type_to_apply else None
quality_group_dict = container_tree.getCurrentQualityGroups()
if self._quality_type_to_apply in quality_group_dict:
quality_group = quality_group_dict[self._quality_type_to_apply]