Fixed formatting to be black-compliant
This commit is contained in:
parent
753255e649
commit
21ce78f475
@ -27,9 +27,7 @@ def _(key: str, *args: str, locale: str = sync.config_get("locale")) -> Any:
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
try:
|
try:
|
||||||
this_dict = json_read(
|
this_dict = json_read(
|
||||||
Path(
|
Path(f'{config_get("locale", "locations")}/{config_get("locale")}.json')
|
||||||
f'{config_get("locale", "locations")}/{config_get("locale")}.json'
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return f'⚠️ Locale in config is invalid: could not get "{key}" in {args} from locale "{locale}"'
|
return f'⚠️ Locale in config is invalid: could not get "{key}" in {args} from locale "{locale}"'
|
||||||
|
Loading…
Reference in New Issue
Block a user