From 0e6f3b87e453594e71ac27e4ecae9f2742ee9ab1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 14 Dec 2024 16:50:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- repo2docker/contentproviders/doi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2docker/contentproviders/doi.py b/repo2docker/contentproviders/doi.py index 5769b2ff..ee51a83e 100644 --- a/repo2docker/contentproviders/doi.py +++ b/repo2docker/contentproviders/doi.py @@ -62,7 +62,7 @@ def doi2url(self, doi): # default Git provider as this leads to a misleading error. self.log.error(f"DOI {doi} does not resolve: {e}") raise - return resp.headers['Location'] + return resp.headers["Location"] else: # Just return what is actulally just a URL return doi