We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1ca9d commit 71ca54cCopy full SHA for 71ca54c
tests/test_serialization_context.py
@@ -991,9 +991,9 @@ async def run(self) -> TraceData:
991
retry_policy=RetryPolicy(maximum_attempts=1),
992
)
993
except ActivityError as e:
994
- if isinstance(e.cause, ApplicationError) and e.cause.details:
995
- return e.cause.details[0]
996
- return TraceData()
+ assert isinstance(e.cause, ApplicationError) and e.cause.details
+ return e.cause.details[0]
+ raise Exception("Unreachable")
997
998
999
class ContextFailureConverter(DefaultFailureConverter, WithSerializationContext):
0 commit comments