From e1fd437a2ab15450c156553fda3439a4372f1754 Mon Sep 17 00:00:00 2001 From: nicoo Date: Mon, 27 Nov 2023 18:37:17 +0000 Subject: [PATCH] pypi.Dowloader._download_url: Fix improper use of `configparser` The second argument of `ConfigParser.get` is *not* the fallback value. Closes #345 --- bork/pypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bork/pypi.py b/bork/pypi.py index 5a47b6e..dd05986 100644 --- a/bork/pypi.py +++ b/bork/pypi.py @@ -38,7 +38,7 @@ def _download_url(self, repository_name): config.read(str(path)) if repository_name in config: - repo_config = config.get(repository_name, None) + repo_config = config[repository_name] if self.PYPIRC_KEY in repo_config: return repo_config[self.PYPIRC_KEY]