mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:29:04 +08: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
@ -400,7 +400,9 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||||||
try:
|
try:
|
||||||
if int(metadata["setting_version"]) != cura.CuraApplication.CuraApplication.SettingVersion:
|
if int(metadata["setting_version"]) != cura.CuraApplication.CuraApplication.SettingVersion:
|
||||||
return False
|
return False
|
||||||
except ValueError: #Not parsable as int.
|
except ValueError: # Not parsable as int.
|
||||||
|
return False
|
||||||
|
except TypeError: # Expecting string input here, not e.g. list or anything.
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user