Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tox test - use noqa perf203 #149

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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