Reordered try except block

This commit is contained in:
Philipp Thumfart 2026-03-02 17:02:38 +01:00
parent 81a66c78e9
commit 6b7b154034

View file

@ -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":