Skip to content

Commit 515892b

Browse files
committed
FIX*
1 parent 10b27be commit 515892b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

piduck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ def pharse(line, known, deltrue):
6868
return
6969
elif command[0] in keymap.commap:
7070
known[0].append(keymap.commap[command[0]])
71-
if len(command) > 0:
71+
if len(command) > 1:
7272
pharse(" ".join(command[1:]), known, True)
7373
else:
7474
out(known)
7575
return
7676
elif command[0] in keymap.c1map:
7777
known[1].append(keymap.c1map[command[0]])
78-
if len(command) > 0:
78+
if len(command) > 1:
7979
pharse(" ".join(command[1:]), known, True)
8080
else:
8181
out(known)

0 commit comments

Comments
 (0)