From 32d73254464bee3c10496c115f7237df8c64cab4 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 21 Mar 2019 20:09:44 +0100 Subject: [PATCH] Backward compatibility with Python 3.4 API Signed-off-by: Clifford Wolf --- sbysrc/sby_core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 482e168..b0698d2 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -234,7 +234,10 @@ class SbyJob: if task.running: fds.append(task.p.stdout) - select(fds, [], [], 1.0) == ([], [], []) + try: + select(fds, [], [], 1.0) == ([], [], []) + except InterruptedError: + pass for task in self.tasks_running: task.poll() -- 2.30.2