From b36d59698d48428e714e6883d1fb7fa05fbaf9d3 Mon Sep 17 00:00:00 2001 From: Jason <66544866+JasonLovesDoggo@users.noreply.github.com> Date: Mon, 13 Jun 2022 16:27:20 -0400 Subject: [PATCH] Update main.py I believe this fixes an eror. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9aabe78..a36c535 100644 --- a/main.py +++ b/main.py @@ -36,6 +36,7 @@ Load .env file if exists. If it doesnt exist, print a warning and launch the set If there is a .env file, check if the required variables are set. If not, print a warning and launch the setup wizard. """ +load_dotenv() client_id = os.getenv("REDDIT_CLIENT_ID") client_secret = os.getenv("REDDIT_CLIENT_SECRET") @@ -43,7 +44,6 @@ username = os.getenv("REDDIT_USERNAME") password = os.getenv("REDDIT_PASSWORD") reddit2fa = os.getenv("REDDIT_2FA") -load_dotenv() console.log("[bold green]Checking environment variables...") time.sleep(1)