From ac5a5dbad6af1239434dd13ff5eccf8a79e3b358 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:14:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- afxdl/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/afxdl/main.py b/afxdl/main.py index cb31e4b..7a326c6 100644 --- a/afxdl/main.py +++ b/afxdl/main.py @@ -92,7 +92,9 @@ def main(test_args: list[str] | None = None) -> None: """ args = __parse_args(test_args) with requests.Session() as session: - session.headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' + session.headers["User-Agent"] = ( + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" + ) session.mount( "https://", HTTPAdapter(