Skip to content

Commit bfd81e5

Browse files
authored
Fix parsing issue in generate.py. Handle nissan special case
1 parent dfa28ba commit bfd81e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class CAR:
6060
# Sometimes it's an object initializer,
6161
# If so, use the first argument
6262
elif isinstance(c.value, ast.Call):
63-
cars.append(c.value.args[0].s)
63+
if len(c.value.args) > 0 and isinstance(c.value.args[0], ast.Str):
64+
cars.append(c.value.args[0].s)
6465

6566
# Log the cars
6667
logging.info("Found %d cars in %s", len(cars), branch)

0 commit comments

Comments
 (0)