Skip to content

Commit

Permalink
Make the code linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Dec 1, 2023
1 parent a58acb4 commit 8c322a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/appose/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def _stdout_loop(self) -> None:
# Skip it and keep going, but log it first.
self._debug_service(f"<INVALID> {line}")


def _stderr_loop(self) -> None:
"""
Input loop processing lines from the worker's stderr stream.
Expand All @@ -194,10 +193,14 @@ def _monitor_loop(self) -> None:
# Do some sanity checks.
exit_code = self._process.returncode
if exit_code != 0:
self._debug_service(f"<worker process terminated with exit code {exit_code}>")
self._debug_service(
f"<worker process terminated with exit code {exit_code}>"
)
task_count = len(self._tasks)
if task_count > 0:
self._debug_service(f"<worker process terminated with {task_count} pending tasks>")
self._debug_service(
f"<worker process terminated with {task_count} pending tasks>"
)

# Notify any remaining tasks about the process crash.
for task in self._tasks.values():
Expand Down

0 comments on commit 8c322a9

Please sign in to comment.