Skip to content

Commit 9e4e585

Browse files
committed
fix to ruff lint
1 parent ccff3d1 commit 9e4e585

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

taskiq/middlewares/simple_retry_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def on_error(
4545
:param exception: found exception.
4646
"""
4747
if self.types_of_exceptions is not None and not isinstance(
48-
exception, tuple(self.types_of_exceptions)
48+
exception, tuple(self.types_of_exceptions),
4949
):
5050
return
5151

taskiq/middlewares/smart_retry_middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import datetime
22
import random
33
from logging import getLogger
4-
from typing import Any, Optional, Iterable
4+
from typing import Any, Iterable, Optional
55

66
from taskiq import ScheduleSource
77
from taskiq.abc.middleware import TaskiqMiddleware
@@ -142,7 +142,7 @@ async def on_error(
142142
:param exception: Caught exception.
143143
"""
144144
if self.types_of_exceptions is not None and not isinstance(
145-
exception, tuple(self.types_of_exceptions)
145+
exception, tuple(self.types_of_exceptions),
146146
):
147147
return
148148

0 commit comments

Comments
 (0)