Update delegator patch

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-11-04 01:52:27 -05:00
parent 888884653a
commit 8d44604eb4
@@ -17,7 +17,7 @@ index d15aeb97..cf6f91c8 100644
- if self.subprocess.after:
- result += self.subprocess.after
+ 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):