Skip to content

Commit b77d3a6

Browse files
committed
Removed redundant except clause.
Signed-off-by: Pavel Kirilin <[email protected]>
1 parent 316adbd commit b77d3a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

taskiq/cli/worker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ async def shutdown_broker(broker: AsyncBroker, timeout: float) -> None:
153153
)
154154

155155

156-
def start_listen(args: TaskiqArgs) -> None: # noqa: C901, WPS213
156+
def start_listen(args: TaskiqArgs) -> None: # noqa: C901
157157
"""
158158
This function starts actual listening process.
159159
@@ -209,9 +209,7 @@ def interrupt_handler(_signum: int, _frame: Any) -> None:
209209
loop.run_until_complete(async_listen_messages(broker, args))
210210
except KeyboardInterrupt:
211211
logger.warning("Worker process interrupted.")
212-
except Exception as exc:
213-
logger.error("Exception found: %s", exc, exc_info=True)
214-
loop.run_until_complete(shutdown_broker(broker, args.shutdown_timeout))
212+
loop.run_until_complete(shutdown_broker(broker, args.shutdown_timeout))
215213

216214

217215
def watch_workers_restarts(args: TaskiqArgs) -> None:

0 commit comments

Comments
 (0)