We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c71aaff commit 54d4415Copy full SHA for 54d4415
1 file changed
taskiq_dependencies/ctx.py
@@ -133,7 +133,7 @@ def close(self, *args: Any) -> None: # noqa: C901
133
:param args: exception info if any.
134
"""
135
exception_found = False
136
- if args[1] is not None and self.propagate_excs:
+ if self.propagate_excs and len(args) > 1 and args[1] is not None:
137
exception_found = True
138
for ctx in self.sub_contexts:
139
ctx.close(*args)
@@ -234,7 +234,7 @@ async def close(self, *args: Any) -> None: # noqa: C901
234
235
236
237
238
239
240
await ctx.close(*args) # type: ignore
0 commit comments