lang: compile: Fix error handling on invalid command

This commit is contained in:
Jookia 2023-09-03 14:28:31 +10:00
parent b3d31089b1
commit c37a75bf1c

View file

@ -190,7 +190,7 @@ def parse_command(line):
command = parse_set(line)
elif instr == "Return":
command = parse_return(line)
else:
if not command:
print("not a command? line: %s" % (' '.join(line)))
return None
return ASTCommand(command)