We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2851e48 commit 441e473Copy full SHA for 441e473
1 file changed
core/testcontainers/core/container.py
@@ -220,7 +220,8 @@ def start(self) -> Self:
220
try:
221
self._wait_strategy.wait_until_ready(self)
222
except TimeoutError as ex:
223
- ex.add_note(self._container.logs().decode())
+ if hasattr(ex, "add_note"):
224
+ ex.add_note(self._container.logs().decode())
225
raise ex
226
227
logger.info("Container started: %s", self._container.short_id)
0 commit comments