Skip to content

Commit

Permalink
Merge branch 'test/fix-tests-up' into fix/sync-with-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-mar committed Dec 2, 2024
2 parents 7c1a12c + afb79a8 commit 0ac2dd4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def check_one_not_none(cls, values):

@model_validator(mode="after")
def check_telegram_token(cls, values):
load_dotenv(os.path.join(settings.work_directory, ".env"))
tg_bot_token = os.getenv("TG_BOT_TOKEN")
if values.telegram is not None and not tg_bot_token:
raise ValueError("Telegram token must be provided.")
Expand Down

0 comments on commit 0ac2dd4

Please sign in to comment.