diff --git a/xcp_d/config.py b/xcp_d/config.py index 7ac5e7d6a..66e122319 100644 --- a/xcp_d/config.py +++ b/xcp_d/config.py @@ -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)): diff --git a/xcp_d/utils/sentry.py b/xcp_d/utils/sentry.py index 94fce1794..0e46d422f 100644 --- a/xcp_d/utils/sentry.py +++ b/xcp_d/utils/sentry.py @@ -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}'