We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5a241 commit fed538aCopy full SHA for fed538a
1 file changed
tests/shared/docker/container.py
@@ -44,7 +44,7 @@ def get_exposed_port(self, internal_port: int = 3_000) -> int:
44
port_mappings = json.loads(stdout.decode('utf-8').strip())
45
except json.JSONDecodeError as e:
46
raise DockerCommandFailedError(
47
- f'Failed to decode JSON: {stdout.decode("utf-8")}. Error: {str(e)}')
+ f'Failed to decode JSON: {stdout.decode("utf-8")}. Error: {str(e)}') from e
48
49
port_key = f"{internal_port}/tcp"
50
if port_key not in port_mappings or not port_mappings[port_key]:
0 commit comments