Skip to content

Commit 0835cb7

Browse files
committed
TRY: FIX: space & Upper
1 parent 29e3d22 commit 0835cb7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

piduck.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ def string(string):
4444
def pharse(line, known, deltrue):
4545
global default_delay
4646
global string_delay
47-
command = line.split()
47+
if line != " ":
48+
command = line.split()
49+
else:
50+
command = [" "]
4851
if not deltrue:
4952
if command[0] == "DELAY":
5053
sleep(int(command[1]) / 100)
@@ -76,7 +79,7 @@ def pharse(line, known, deltrue):
7679
out(known)
7780
return
7881
elif command[0] in keymap.c2map:
79-
pharse(keymap.c2map[command[0]] + " ".join(command[1:]), known, True)
82+
pharse(keymap.c2map[command[0]], known, True)
8083
return
8184
else:
8285
exit(2)

0 commit comments

Comments
 (0)