Skip to content

Commit 0db8e77

Browse files
committed
fix: linting in container.py
1 parent fed538a commit 0db8e77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/shared/docker/container.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def get_exposed_port(self, internal_port: int = 3_000) -> int:
5959
return int(port_mappings[port_key][0]['HostPort'])
6060
except (KeyError, IndexError, TypeError) as e:
6161
raise DockerCommandFailedError(
62-
f'Failed to parse port mapping: {stdout.decode("utf-8")}. Error: {str(e)}') from e
62+
f'Failed to parse port mapping: {stdout.decode("utf-8")}. '
63+
f'Error: {str(e)}'
64+
) from e
6365

6466
def restart(self):
6567
"""Restart the container"""

0 commit comments

Comments
 (0)