Commit 80291b60 authored by Jérome Perrin's avatar Jérome Perrin

Machine: do not fail if multiple operation are defined in old format

parent c1e478f8
...@@ -114,7 +114,7 @@ class Machine(CoreObject): ...@@ -114,7 +114,7 @@ class Machine(CoreObject):
# there can be Setup/Processing operationType # there can be Setup/Processing operationType
# or the combination of both (MT-Load-Setup-Processing) # or the combination of both (MT-Load-Setup-Processing)
self.multOperationTypeList=[] self.multOperationTypeList=[]
if self.operationType.startswith("MT"): if isinstance(self.operationType, basestring) and self.operationType.startswith("MT"):
OTlist = operationType.split('-') OTlist = operationType.split('-')
self.operationType=OTlist.pop(0) self.operationType=OTlist.pop(0)
self.multOperationTypeList = OTlist self.multOperationTypeList = OTlist
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment