From 68bc587f59a73d7456faaef3a049c669ae208ba9 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 3 Nov 2022 21:40:35 +0000 Subject: [PATCH] daemon: await the build task to fetch any exceptions Signed-off-by: Michael Tremer --- src/pakfire/daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pakfire/daemon.py b/src/pakfire/daemon.py index dd001e053..166f28e78 100644 --- a/src/pakfire/daemon.py +++ b/src/pakfire/daemon.py @@ -253,6 +253,9 @@ class Worker(multiprocessing.Process): while not build.done(): await logger.stream(timeout=1) + # Await the build task (which would raise any exceptions) + await build + # Catch any other Exception except Exception as e: raise e -- 2.39.5