From 7cb3ea20dd7ab2dfa45eece07b2c9aebac55310c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 23 Aug 2013 11:59:58 +0200 Subject: [PATCH] Minor patch for a problem noticed yesterday too (in some cases if Ctrl-C is pressed sent is most probably a None value) --- lib/core/subprocessng.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/subprocessng.py b/lib/core/subprocessng.py index f2685ddfd..8483b0a73 100644 --- a/lib/core/subprocessng.py +++ b/lib/core/subprocessng.py @@ -197,4 +197,6 @@ def send_all(p, data): while len(data): sent = p.send(data) + if not isinstance(sent, int): + break data = buffer(data, sent)