Skip to content

Commit fed538a

Browse files
committed
fix: linting container.py
1 parent ab5a241 commit fed538a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/shared/docker/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_exposed_port(self, internal_port: int = 3_000) -> int:
4444
port_mappings = json.loads(stdout.decode('utf-8').strip())
4545
except json.JSONDecodeError as e:
4646
raise DockerCommandFailedError(
47-
f'Failed to decode JSON: {stdout.decode("utf-8")}. Error: {str(e)}')
47+
f'Failed to decode JSON: {stdout.decode("utf-8")}. Error: {str(e)}') from e
4848

4949
port_key = f"{internal_port}/tcp"
5050
if port_key not in port_mappings or not port_mappings[port_key]:

0 commit comments

Comments
 (0)