From 69c08d196f8bf8fe64fc954f2f4b9f19e10e078c Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 25 Nov 2023 22:22:00 +0000 Subject: Remove the need for calling dotenv manually by using pydantic --- bot/__init__.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bot/__init__.py') 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 -- cgit v1.2.3