Backward compatibility with Python 3.4 API
authorClifford Wolf <clifford@clifford.at>
Thu, 21 Mar 2019 19:09:44 +0000 (20:09 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 21 Mar 2019 19:09:44 +0000 (20:09 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
sbysrc/sby_core.py

index 482e16862a817e1d75836aaee2a740e5dd4c1b0e..b0698d2b70d1b4b70223ce2cc0f2e4f90a56bb07 100644 (file)
@@ -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()