diff --git a/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py b/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py index a96b38902d..43fae0b472 100644 --- a/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py +++ b/plugins/VersionUpgrade/VersionUpgrade43to44/VersionUpgrade43to44.py @@ -54,7 +54,8 @@ class VersionUpgrade43to44(VersionUpgrade): parser["metadata"]["setting_version"] = "10" # We should only have 6 levels when we start. - assert "7" not in parser["containers"] + if "7" in parser["containers"]: + return ([], []) # We added the intent container in Cura 4.4. This means that all other containers move one step down. parser["containers"]["7"] = parser["containers"]["6"] @@ -66,4 +67,4 @@ class VersionUpgrade43to44(VersionUpgrade): result = io.StringIO() parser.write(result) - return [filename], [result.getvalue()] \ No newline at end of file + return [filename], [result.getvalue()]