Skip to content

Commit

Permalink
Не выставляем ID 0, если не задан параметр ADMIN_CHAT_ID
Browse files Browse the repository at this point in the history
Иначе проверка на None не имеет смысла
  • Loading branch information
MasterGroosha committed Dec 14, 2021
1 parent e9aa448 commit f4db89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/configreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_config() -> Config:
return Config(
bot=Bot(
token=getenv("BOT_TOKEN"),
admin_chat_id=int(getenv("ADMIN_CHAT_ID", 0))
admin_chat_id=int(getenv("ADMIN_CHAT_ID"))
),
app=App(
webhook_enabled=getenv("WEBHOOK_ENABLED", "no") in ("yes", "1", "true"),
Expand Down

0 comments on commit f4db89f

Please sign in to comment.