lib.ExecContext.run(): Fix: Pass up Exceptions

Fix another regression of commit 6db73873e7: lib.ExecContext.CallContext.__exit__() returns True, which swallows all exceptions thrown in the context of _run() and _sudo(). Fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-02 07:24:26 +02:00
commit 0bfb08bce2
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -174,9 +174,8 @@ class ExecContext(Base):
exc_type: Type[BaseException] | None, exc_type: Type[BaseException] | None,
exc_value: BaseException | None, exc_value: BaseException | None,
traceback: TracebackType | None, traceback: TracebackType | None,
) -> bool: ) -> None:
self.log_delim(start = False) self.log_delim(start = False)
return True
@property @property
def log_prefix(self) -> str: def log_prefix(self) -> str: