This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new b2df9f8  Catch all relevant errors when accessing the admin cache in 
workers
b2df9f8 is described below

commit b2df9f8959318a2813d48e090c7bb87f6f9c0012
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Jan 26 16:06:37 2026 +0000

    Catch all relevant errors when accessing the admin cache in workers
---
 atr/cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/atr/cache.py b/atr/cache.py
index 4feb61d..19d572e 100644
--- a/atr/cache.py
+++ b/atr/cache.py
@@ -46,7 +46,7 @@ def admins_get() -> frozenset[str]:
 async def admins_get_async() -> frozenset[str]:
     try:
         return admins_get()
-    except RuntimeError:
+    except (AttributeError, RuntimeError):
         cache_data = await admins_read_from_file()
         if cache_data is None:
             return frozenset()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to