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:
parent
1b814e1718
commit
0bfb08bce2
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue