Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7cb3ea2

Browse files
committed
Minor patch for a problem noticed yesterday too (in some cases if Ctrl-C is pressed sent is most probably a None value)
1 parent 88b992a commit 7cb3ea2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/subprocessng.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,6 @@ def send_all(p, data):
197197

198198
while len(data):
199199
sent = p.send(data)
200+
if not isinstance(sent, int):
201+
break
200202
data = buffer(data, sent)

0 commit comments

Comments
 (0)