aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-11-25 22:22:00 +0000
committerGravatar Chris Lovering <[email protected]>2023-11-25 22:22:00 +0000
commit69c08d196f8bf8fe64fc954f2f4b9f19e10e078c (patch)
tree4570950b3907ee1a852fdcfa180b4c0e42718d46 /bot/__init__.py
parentUpdate to pydantic 2.0 (diff)
Remove the need for calling dotenv manually by using pydantic
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 67165073..6646f2af 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -1,10 +1,3 @@
-try:
- from dotenv import load_dotenv
- print("Found .env file, loading environment variables from it.") # noqa: T201
- load_dotenv(override=True)
-except ModuleNotFoundError:
- pass
-
import asyncio
import os
from typing import TYPE_CHECKING