Skip to content

Instantly share code, notes, and snippets.

@martinl
Created July 2, 2020 18:07
Show Gist options
  • Save martinl/81ce04e73edfe502dbba1d1388614491 to your computer and use it in GitHub Desktop.
Save martinl/81ce04e73edfe502dbba1d1388614491 to your computer and use it in GitHub Desktop.
import sys
import cantools
dbc_file = sys.argv[1]
try:
dbc = cantools.database.load_file(dbc_file)
print("%s OK" % (dbc_file))
except Exception as e:
print("%s Failed" % (dbc_file))
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment