We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa28ba commit bfd81e5Copy full SHA for bfd81e5
generate.py
@@ -60,7 +60,8 @@ class CAR:
60
# Sometimes it's an object initializer,
61
# If so, use the first argument
62
elif isinstance(c.value, ast.Call):
63
- cars.append(c.value.args[0].s)
+ if len(c.value.args) > 0 and isinstance(c.value.args[0], ast.Str):
64
+ cars.append(c.value.args[0].s)
65
66
# Log the cars
67
logging.info("Found %d cars in %s", len(cars), branch)
0 commit comments