Skip to content

Commit

Permalink
fix: fail at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Antares0982 committed May 12, 2024
1 parent fbb8561 commit 490be72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions antares_bot/multi_lang/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
def lang_context():
try:
ct = get_context()
if ct is None:
return BasicConfig.LOCALE
except:
return BasicConfig.LOCALE
return LangContextManager.get_inst().get_user_lang(ct)
Expand Down

0 comments on commit 490be72

Please sign in to comment.