From d7d6552759a30129c5e2961dcff2d8b00f7f1ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Wed, 5 Jul 2023 07:47:30 +0000 Subject: [PATCH] noqa perf203 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- extensions/eda/plugins/event_source/aws_sqs_queue.py | 2 +- extensions/eda/plugins/event_source/url_check.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/eda/plugins/event_source/aws_sqs_queue.py b/extensions/eda/plugins/event_source/aws_sqs_queue.py index 934bc8b8..d8fff5f0 100644 --- a/extensions/eda/plugins/event_source/aws_sqs_queue.py +++ b/extensions/eda/plugins/event_source/aws_sqs_queue.py @@ -67,7 +67,7 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None: meta = {"MessageId": msg["MessageId"]} try: msg_body = json.loads(msg["Body"]) - except json.JSONDecodeError: + except json.JSONDecodeError: # noqa: perf203 msg_body = msg["Body"] await queue.put({"body": msg_body, "meta": meta}) diff --git a/extensions/eda/plugins/event_source/url_check.py b/extensions/eda/plugins/event_source/url_check.py index 8c6c7b89..796e1754 100644 --- a/extensions/eda/plugins/event_source/url_check.py +++ b/extensions/eda/plugins/event_source/url_check.py @@ -51,7 +51,7 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None: }, ) - except aiohttp.ClientError as e: + except aiohttp.ClientError as e: # noqa: perf203 client_error = str(e) await queue.put( {