commit: 74e29110d86a55ac74fdde3e1b79506b3fb695c2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Wed Aug 14 05:49:30 2024 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Wed Aug 14 15:08:12 2024 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=74e29110
_EbuildFetcherProcess: Suppress CancelledError Suppress CancelledError when attempting to cache the result in the _async_uri_map method. The cancelled result is returned for the caller to handle. Bug: https://bugs.gentoo.org/937888 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> lib/_emerge/EbuildFetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_emerge/EbuildFetcher.py b/lib/_emerge/EbuildFetcher.py index 994271236c..422d7c0a06 100644 --- a/lib/_emerge/EbuildFetcher.py +++ b/lib/_emerge/EbuildFetcher.py @@ -373,7 +373,7 @@ class _EbuildFetcherProcess(ForkProcess): def cache_result(result): try: self._uri_map = result.result() - except Exception: + except (CancelledError, Exception): # The caller handles this when it retrieves the result. pass
