fix linting

This commit is contained in:
Robert Kaussow 2023-06-15 09:12:05 +02:00
parent 4d61420b12
commit 9132842db7
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 2 additions and 2 deletions

View File

@ -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):