fix for absent MAS
This commit is contained in:
parent
883f1cf8df
commit
83e099187c
@ -132,7 +132,11 @@ class ecu_state:
|
|||||||
itext = defaultText
|
itext = defaultText
|
||||||
self.caracter[ivalue]=itext
|
self.caracter[ivalue]=itext
|
||||||
|
|
||||||
|
try:
|
||||||
xmlstr = opt["State\\"+self.name]
|
xmlstr = opt["State\\"+self.name]
|
||||||
|
except:
|
||||||
|
return
|
||||||
|
|
||||||
odom = xml.dom.minidom.parseString( xmlstr.encode( "utf-8" ) )
|
odom = xml.dom.minidom.parseString( xmlstr.encode( "utf-8" ) )
|
||||||
odoc = odom.documentElement
|
odoc = odom.documentElement
|
||||||
|
|
||||||
@ -171,5 +175,6 @@ class ecu_states:
|
|||||||
mdom = xml.dom.minidom.parseString(tempStateXml)
|
mdom = xml.dom.minidom.parseString(tempStateXml)
|
||||||
mdocElem = mdom.documentElement
|
mdocElem = mdom.documentElement
|
||||||
state = ecu_state( mdocElem, opt, tran )
|
state = ecu_state( mdocElem, opt, tran )
|
||||||
|
if state.computation != '':
|
||||||
state_list[state.name] = state
|
state_list[state.name] = state
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user