commit: 8d1a2095e9e3d5892d5eef39725d8bd2bcf74cbe Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Mon Aug 21 18:23:37 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Mon Aug 21 18:23:37 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=8d1a2095
operations.format.fetch_base: fix for when no proxy Follows: b1053683ecb8e17ed69e5797c32b83dd48452f59 Resolves: https://github.com/pkgcore/pkgdev/issues/151 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcore/operations/format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkgcore/operations/format.py b/src/pkgcore/operations/format.py index 95775f7b0..d0cf6392b 100644 --- a/src/pkgcore/operations/format.py +++ b/src/pkgcore/operations/format.py @@ -45,8 +45,8 @@ class fetch_base: resumecmd, attempts=attempts, PATH=os.environ["PATH"], - http_proxy=os.environ["http_proxy"], - https_proxy=os.environ["https_proxy"], + http_proxy=os.environ.get("http_proxy", ""), + https_proxy=os.environ.get("https_proxy", ""), ) def fetch_all(self, observer):