That causes parse.parse() to return None instead of the matched variables. Which then raises an exception 2 lines later when an attempt to access comps["link_comp"].
This resolves it by calling .strip() prior to parse() so that the string value will match the pattern that parse is expecting.
I tested it successfully by running python3 -m adabot.circuitpython_libraries with the appropriate env variables set up.
For some reason some of the lib strings have a
\r
at the end of them i.e.That causes
parse.parse()
to returnNone
instead of the matched variables. Which then raises an exception 2 lines later when an attempt to accesscomps["link_comp"]
.This resolves it by calling
.strip()
prior toparse()
so that the string value will match the pattern that parse is expecting.I tested it successfully by running
python3 -m adabot.circuitpython_libraries
with the appropriate env variables set up.