We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b555a commit 27bc409Copy full SHA for 27bc409
src/swerex/deployment/docker.py
@@ -187,8 +187,8 @@ async def stop(self):
187
stderr=subprocess.DEVNULL,
188
timeout=10,
189
)
190
- except subprocess.CalledProcessError:
191
- self.logger.warning(f"Failed to kill container {self._container_name}")
+ except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as e:
+ self.logger.warning(f"Failed to kill container {self._container_name}: {e}", exc_info=True)
192
for _ in range(3):
193
self._container_process.kill()
194
try:
0 commit comments