Browse Source

Skip containers that can not be serialized

CURA-1445
fieldOfView 8 years ago
parent
commit
3f7f6f8a23
1 changed files with 6 additions and 1 deletions
  1. 6 1
      plugins/SliceInfoPlugin/SliceInfo.py

+ 6 - 1
plugins/SliceInfoPlugin/SliceInfo.py

@@ -92,7 +92,12 @@ class SliceInfo(Extension):
         }
         for container in global_container_stack.getContainers():
             container_id = container.getId()
-            container_serialized = container.serialize()
+            try:
+                container_serialized = container.serialize()
+            except NotImplementedError:
+                Logger.log("w", "Container %s could not be serialized!", container_id)
+                continue
+
             if container_serialized:
                 submitted_data["settings_%s" %(container_id)] = container_serialized # This can be anything, eg. INI, JSON, etc.
             else: