We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a98aff3 commit 36f5b56Copy full SHA for 36f5b56
1 file changed
src/hal/drivers/mesa-hostmot2/mesambccc.py
@@ -1510,6 +1510,16 @@ def main():
1510
else:
1511
perr("Invalid/unknown tag '{}'".format(node.tag))
1512
1513
+ # If no <initlist> tag is present, create an empty one
1514
+ if None == initlist:
1515
+ initlist = []
1516
+
1517
+ # It is an error if no <commands> tag is present or the list is empty
1518
+ if None == commands:
1519
+ perr("Missing <commands> tag")
1520
+ elif len(commands) < 1:
1521
+ perr("No <command> tags defined in <commands>")
1522
1523
# Quit if a parse error occurred
1524
if errorflag:
1525
return 1
0 commit comments