Don't assert if there are already 7 containers in stack

CURA-6599

Co-Authored-By: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
This commit is contained in:
Jaime van Kessel 2019-09-13 09:29:49 +02:00 committed by GitHub
parent 06103b98d5
commit febe953226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]