You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line was originally intended to import the content of the ECU. However, because it is a query during the import process and no instance is created, the query result return None, which leads to an error.
I would suggest changing it to look like below:
ecu=db.ecu_by_name(
temp.group(2))
if not ecu:
ecu=canmatrix.Ecu(temp.group(2))
db.add_ecu(ecu)
ecu.add_attribute(
temp.group(1),
temp.group(3))
The text was updated successfully, but these errors were encountered:
code
This line was originally intended to import the content of the ECU. However, because it is a query during the import process and no instance is created, the query result return None, which leads to an error.
I would suggest changing it to look like below:
The text was updated successfully, but these errors were encountered: