ruff: enable TRY rules

This commit is contained in:
Dima Gerasimov 2024-08-28 03:18:45 +01:00
parent 557af7b692
commit c248aa7496
3 changed files with 11 additions and 2 deletions

View file

@ -11,10 +11,11 @@ def user_forced() -> Sequence[str]:
# https://stackoverflow.com/questions/36067621/python-all-possible-timezone-abbreviations-for-given-timezone-name-and-vise-ve
try:
from my.config import time as user_config
return user_config.tz.force_abbreviations # type: ignore[attr-defined]
except:
# todo log/apply policy
return []
else:
return user_config.tz.force_abbreviations # type: ignore[attr-defined]
@lru_cache(1)