diff --git a/src/fmripost_phase/cli/run.py b/src/fmripost_phase/cli/run.py index 4b71619..07da36c 100644 --- a/src/fmripost_phase/cli/run.py +++ b/src/fmripost_phase/cli/run.py @@ -219,7 +219,7 @@ def main(): if sentry_sdk is not None and failed_reports: sentry_sdk.capture_message( - 'Report generation failed for %d subjects' % failed_reports, + f'Report generation failed for {failed_reports} subjects', level='error', ) sys.exit(int((errno + len(failed_reports)) > 0)) diff --git a/src/fmripost_phase/config.py b/src/fmripost_phase/config.py index a38c62a..33a248c 100644 --- a/src/fmripost_phase/config.py +++ b/src/fmripost_phase/config.py @@ -149,7 +149,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)):