diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-08-13 22:49:30 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-08-14 08:08:12 -0700 |
commit | 74e29110d86a55ac74fdde3e1b79506b3fb695c2 (patch) | |
tree | 65a78cec2b45e28ac2d95bd043e8f04ff022caf2 | |
parent | dispatch-conf: ignore SHELL in spawn_shell (diff) | |
download | portage-74e29110d86a55ac74fdde3e1b79506b3fb695c2.tar.gz portage-74e29110d86a55ac74fdde3e1b79506b3fb695c2.tar.bz2 portage-74e29110d86a55ac74fdde3e1b79506b3fb695c2.zip |
_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@gentoo.org>
-rw-r--r-- | lib/_emerge/EbuildFetcher.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/EbuildFetcher.py b/lib/_emerge/EbuildFetcher.py index 994271236..422d7c0a0 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 |