From e2a91dd8aee9d42267fe5c0cba75ce4540a7fd1a Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 13 Jul 2024 07:52:17 +0200 Subject: [PATCH] fix exception raising --- sau/gentoo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sau/gentoo.py b/sau/gentoo.py index 86742a6..23f691d 100644 --- a/sau/gentoo.py +++ b/sau/gentoo.py @@ -168,7 +168,7 @@ def pkg_upgrade(): raise sau.errors.UpgradeError(f"Kernel package {name} has an update, but system upgrade is disabled") if not do_rebuild: - sau.errors.UpgradeError('Some packages require manual attention, did not upgrade') + raise sau.errors.UpgradeError('Some packages require manual attention, did not upgrade') cmd = [ EMERGE_PATH, '--color', 'n', '-uDNq', '--with-bdeps=y', '@world' ] ret, out, err = sau.helpers.exec_cmd(cmd, timeout=72000)