Skip to content

Commit 822edf8

Browse files
committed
Merge remote-tracking branch 'origin/main' into bundled-optional-exts
2 parents 816c745 + 51d6e93 commit 822edf8

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

dapr/ext/workflow/_durabletask/client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ def __enter__(self):
176176
return self
177177

178178
def __exit__(self, exc_type, exc, tb):
179-
try:
180-
self.close()
181-
finally:
182-
return False
179+
# close() is best-effort and swallows its own errors, so a plain call is safe here.
180+
# Returning False (i.e., not suppressing the original exception) is the same behavior
181+
# as the previous try/finally, without the `return in finally` SyntaxWarning on Python 3.14+.
182+
self.close()
183+
return False
183184

184185
def close(self) -> None:
185186
"""Close the underlying gRPC channel."""

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)