lang: compile: Fix error handling on invalid command
This commit is contained in:
parent
b3d31089b1
commit
c37a75bf1c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue