Skip to content

Commit effb63e

Browse files
sicoyleCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sam <sam@diagrid.io>
1 parent 9d07167 commit effb63e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • ext/dapr-ext-workflow/dapr/ext/workflow/_durabletask

ext/dapr-ext-workflow/dapr/ext/workflow/_durabletask/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,9 @@ def __enter__(self):
168168
return self
169169

170170
def __exit__(self, exc_type, exc, tb):
171-
# close() is best-effort and swallows its own errors, so a plain call safe here.
172-
# Returning False — i.e. not suppressing the original exception -
173-
# is the same behavior as the previous try/finally, without
174-
# the `return in finally` SyntaxWarning on Python 3.14+.
171+
# close() is best-effort and swallows its own errors, so a plain call is safe here.
172+
# Returning False (i.e., not suppressing the original exception) is the same behavior
173+
# as the previous try/finally, without the `return in finally` SyntaxWarning on Python 3.14+.
175174
self.close()
176175
return False
177176

0 commit comments

Comments
 (0)