From b8670edcf87bb8fdfa60f8f0a8428b5dd19060cc Mon Sep 17 00:00:00 2001 From: Daniel Lombardi Date: Mon, 4 Dec 2023 14:27:37 -0300 Subject: [PATCH] fix lint error Signed-off-by: Daniel Lombardi Signed-off-by: Daniel Lombardi --- docker/api/build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/api/build.py b/docker/api/build.py index 1f6a6e2d..9c8b4e6a 100644 --- a/docker/api/build.py +++ b/docker/api/build.py @@ -131,14 +131,14 @@ class BuildApiMixin: ) if tag is not None: if not utils.match_tag(tag): - raise errors.DockerException(f"invalid tag '{tag}': invalid reference format") - + raise errors.DockerException( + f"invalid tag '{tag}': invalid reference format" + ) for key in container_limits.keys(): if key not in constants.CONTAINER_LIMITS_KEYS: raise errors.DockerException( - f'Invalid container_limits key {key}' + f"invalid tag '{tag}': invalid reference format" ) - if custom_context: if not fileobj: raise TypeError("You must specify fileobj with custom_context")