Skip to content

Commit

Permalink
Type 'str' doesn't have expected attribute 'childNodes'
Browse files Browse the repository at this point in the history
  • Loading branch information
Furtif committed Jun 12, 2023
1 parent 941211c commit 904b6f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ecu.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,8 @@ def __init__(self, data, isfile=False):
if not os.path.exists(data):
print("Cannot load ECU file", data)
return
xdom = xml.dom.minidom.parse(data)
self.xmldoc = xdom.documentElement
else:
self.xmldoc = data
xdom = xml.dom.minidom.parse(data)
self.xmldoc = xdom.documentElement

if not self.xmldoc:
print("XML not found")
Expand Down

0 comments on commit 904b6f0

Please sign in to comment.