Skip to content

Commit d77c49c

Browse files
author
Вадим Козыревский
committed
fix after review
1 parent 64557cb commit d77c49c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/cqrs/saga/saga.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,8 @@ async def __aiter__(
168168
run_cm = None
169169

170170
if run_cm is not None:
171-
try:
172-
async with run_cm as run:
173-
async for step_result in self._execute(run):
174-
yield step_result
175-
except NotImplementedError:
176-
async for step_result in self._execute(None):
171+
async with run_cm as run:
172+
async for step_result in self._execute(run):
177173
yield step_result
178174
else:
179175
async for step_result in self._execute(None):

tests/integration/test_saga_mediator_sqlalchemy_postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from cqrs.saga.storage.enums import SagaStatus
1212
from cqrs.saga.storage.sqlalchemy import SqlAlchemySagaStorage
1313

14+
from tests.integration.conftest import _TestContainer
1415
from tests.integration.test_saga_mediator_memory import (
15-
_TestContainer,
1616
FailingOrderSaga,
1717
InventoryReservedEventHandler,
1818
OrderContext,

0 commit comments

Comments
 (0)