summaryrefslogtreecommitdiff
path: root/voctogui/lib/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctogui/lib/connection.py')
-rw-r--r--voctogui/lib/connection.py4
1 files changed, 2 insertions, 2 deletions
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]: