From 9132842db761b45dffb48f4cd963a14196115c6c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 15 Jun 2023 09:12:05 +0200 Subject: [PATCH] fix linting --- dockertidy/autostop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockertidy/autostop.py b/dockertidy/autostop.py index eb85da0..18594e6 100644 --- a/dockertidy/autostop.py +++ b/dockertidy/autostop.py @@ -58,9 +58,9 @@ class AutoStop: try: client.stop(cid) except requests.exceptions.Timeout as e: - self.logger.warning(f"Failed to stop container {cid}: {str(e)}") + self.logger.warning(f"Failed to stop container {cid}: {e!s}") except docker.errors.APIError as e: - self.logger.warning(f"Error stopping {cid}: {str(e)}") + self.logger.warning(f"Error stopping {cid}: {e!s}") def _build_container_matcher(self, prefixes):