From d4898b002c6c8fff939fb54442b0e6092e0b4199 Mon Sep 17 00:00:00 2001 From: Anartz Nuin Date: Wed, 27 Mar 2024 09:20:57 +0000 Subject: [PATCH] Fix linting --- stream_transcriber/streams.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stream_transcriber/streams.py b/stream_transcriber/streams.py index 066bcf0..d21e7d6 100644 --- a/stream_transcriber/streams.py +++ b/stream_transcriber/streams.py @@ -258,8 +258,10 @@ async def load_stream(stream_name: str): if done_routine.exception() is not None: exception_name = type(done_routine.exception()).__name__ LOGGER.error( - f"Exception for done routine: {done_routine.get_name()}", - f" Exception ({exception_name}): {done_routine.exception()}", + "Exception for done routine: %s. Exception (%s): %s", + done_routine.get_name(), + exception_name, + done_routine.exception(), extra={"stream": stream_name}, )