Merge pull request #489 from elebumm/JasonLovesDoggo-patch-2

Update main.py
This commit is contained in:
Freebie authored and GitHub committed 2022-06-13 22:30:55 +02:00
commit a62544ce4f
1 file changed
+1 -1
+1 -1
View File
@@ -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)