From 57e05ef2451652c8e15546afb51b2aeaa1c95165 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 10 Nov 2015 15:42:42 +0100 Subject: support python32 in ui --- voctogui/lib/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'voctogui/lib/connection.py') diff --git a/voctogui/lib/connection.py b/voctogui/lib/connection.py index 0df302a..6bece3d 100644 --- a/voctogui/lib/connection.py +++ b/voctogui/lib/connection.py @@ -67,11 +67,11 @@ def on_data(conn, _, leftovers, *args): except UnicodeDecodeError as e: continue - except BlockingIOError as e: + except: pass data = "".join(leftovers) - leftovers.clear() + del leftovers[:] lines = data.split('\n') for line in lines[:-1]: -- cgit v1.2.3