From f943f10c4db87d0fd46fae8d101e08cb73ce74dd Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sat, 9 Jul 2022 00:53:14 +0000 Subject: [PATCH] bug fix in update.py - add load_dotenv --- update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.py b/update.py index c2c3624..48dca8d 100644 --- a/update.py +++ b/update.py @@ -3,6 +3,9 @@ from rss import RssReader from update_manager import UpdateManager from database import Database from telegram import Notifier +from dotenv import load_dotenv + +load_dotenv() token = os.getenv('TELEGRAM_TOKEN') db_path = os.getenv('DATABASE_PATH')