Просмотр исходного кода

Fix profile upgrade in profile importing

CURA-6681
Lipu Fei 5 лет назад
Родитель
Сommit
33739ea7a8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/CuraProfileReader/CuraProfileReader.py

+ 1 - 1
plugins/CuraProfileReader/CuraProfileReader.py

@@ -85,7 +85,7 @@ class CuraProfileReader(ProfileReader):
         profile = InstanceContainer(profile_id)
         profile.setMetaDataEntry("type", "quality_changes")
         try:
-            profile.deserialize(serialized)
+            profile.deserialize(serialized, file_name = profile_id)
         except ContainerFormatError as e:
             Logger.log("e", "Error in the format of a container: %s", str(e))
             return None