mirror of
https://github.com/jazzband/django-constance.git
synced 2026-05-09 16:14:47 +00:00
Reordered try except block
This commit is contained in:
parent
81a66c78e9
commit
6b7b154034
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue