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

Fix remaining style issues #1337

Merged
merged 1 commit into from
Nov 25, 2024
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 xcp_d/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
# Just get so analytics track one hit
from contextlib import suppress

from requests import ConnectionError, ReadTimeout
from requests import ConnectionError, ReadTimeout # noqa: A004
from requests import get as _get_url

with suppress((ConnectionError, ReadTimeout)):
Expand Down
2 changes: 1 addition & 1 deletion xcp_d/utils/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def process_crashfile(crashfile):
scope.set_extra(k, strv[0])
else:
for i, chunk in enumerate(strv):
scope.set_extra('%s_%02d' % (k, i), chunk) # noqa:FS001
scope.set_extra(f'{k}_{i:02d}', chunk) # noqa:FS001

fingerprint = ''
issue_title = f'{node_name}: {gist}'
Expand Down