From 6b7b154034e235d12f99ba92c32d7265c93fc7c7 Mon Sep 17 00:00:00 2001 From: Philipp Thumfart Date: Mon, 2 Mar 2026 17:02:38 +0100 Subject: [PATCH] Reordered try except block --- constance/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constance/base.py b/constance/base.py index f5c54b8..396eb4f 100644 --- a/constance/base.py +++ b/constance/base.py @@ -121,9 +121,9 @@ class Config: try: asyncio.get_running_loop() - return AsyncValueProxy(key, self, default) except RuntimeError: return self._get_sync_value(key, default) + return AsyncValueProxy(key, self, default) def __setattr__(self, key, value): if key == "_backend":