Fix can not concatenate str and type error during locking

This commit is contained in:
jxltom
2018-11-04 09:45:04 +08:00
parent 66d4999f52
commit 563e14e562
+1 -1
View File
@@ -112,7 +112,7 @@ class Command(object):
if self.subprocess.before:
result += self.subprocess.before
if self.subprocess.after and self.subprocess.after is not pexpect.EOF:
if self.subprocess.after and self.subprocess.after not in (pexpect.EOF, pexpect.TIMEOUT):
try:
result += self.subprocess.after
except (pexpect.EOF, pexpect.TIMEOUT):