Skip to content

Commit 10b27be

Browse files
committed
Fix error from fixfn
1 parent b6b0667 commit 10b27be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

piduck.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ def string(string):
3939
def pharse(line, known, deltrue):
4040
global default_delay
4141
global string_delay
42-
if line != " ":
43-
command = line.split()
44-
else:
42+
if line == "":
43+
return
44+
elif line == " ":
4545
command = [" "]
46+
else:
47+
command = line.split()
4648
if command[0] == "DELAY":
4749
sleep(int(command[1]) / 100)
4850
return

0 commit comments

Comments
 (0)