Skip to content

Commit

Permalink
noqa perf203 (#149)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid authored Jul 5, 2023
1 parent c20203c commit a4f0b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/eda/plugins/event_source/aws_sqs_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion extensions/eda/plugins/event_source/url_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit a4f0b17

Please sign in to comment.