From: Michael Tremer Date: Thu, 3 Nov 2022 21:40:35 +0000 (+0000) Subject: daemon: await the build task to fetch any exceptions X-Git-Tag: 0.9.28~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68bc587f59a73d7456faaef3a049c669ae208ba9;p=pakfire.git daemon: await the build task to fetch any exceptions Signed-off-by: Michael Tremer --- 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