Skip to content

Commit 441e473

Browse files
fix: add guard for 3.10
1 parent 2851e48 commit 441e473

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/testcontainers/core/container.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ def start(self) -> Self:
220220
try:
221221
self._wait_strategy.wait_until_ready(self)
222222
except TimeoutError as ex:
223-
ex.add_note(self._container.logs().decode())
223+
if hasattr(ex, "add_note"):
224+
ex.add_note(self._container.logs().decode())
224225
raise ex
225226

226227
logger.info("Container started: %s", self._container.short_id)

0 commit comments

Comments
 (0)