Skip to content

Commit e6eb684

Browse files
committed
Fix
Signed-off-by: Bernát Gábor <[email protected]>
1 parent 946b4ec commit e6eb684

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tox/execute/local_sub_process/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def __enter__(self) -> ExecuteStatus:
216216
except OSError as exception:
217217
# We log a nice error message to avout returning opaque error codes,
218218
# like exit code 2 (filenotfound).
219-
logging.error("Exception running subprocess %s", str(exception)) # noqa: TRY400
219+
logging.error("Exception running subprocess %s", exception) # noqa: TRY400
220220
return LocalSubprocessExecuteFailedStatus(self.options, self._out, self._err, exception.errno)
221221

222222
status = LocalSubprocessExecuteStatus(self.options, self._out, self._err, process)

src/tox/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def run(args: Sequence[str] | None = None) -> None:
2020
result = main(sys.argv[1:] if args is None else args)
2121
except Exception as exception:
2222
if isinstance(exception, HandledError):
23-
logging.error("%s| %s", type(exception).__name__, str(exception)) # noqa: TRY400
23+
logging.error("%s| %s", type(exception).__name__, exception) # noqa: TRY400
2424
result = -2
2525
else:
2626
raise

0 commit comments

Comments
 (0)