mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Catch TypeError when parsing setting version
Someone had a list in the setting version, which then crashed Cura.
This commit is contained in:
parent
640e038ce7
commit
1b8463ba30
1 changed files with 3 additions and 1 deletions
|
|
@ -402,6 +402,8 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
return False
|
||||
except ValueError: # Not parsable as int.
|
||||
return False
|
||||
except TypeError: # Expecting string input here, not e.g. list or anything.
|
||||
return False
|
||||
return True
|
||||
|
||||
def _configureProfile(self, profile: InstanceContainer, id_seed: str, new_name: str, machine_definition_id: str) -> Tuple[bool, Optional[str]]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue