From 0aa9e1f697af69dac77af3685ce273b64ed23b7c Mon Sep 17 00:00:00 2001 From: Tom Riddle <1+root@noreply.sakamoto.best> Date: Tue, 28 Jul 2026 18:12:05 +0000 Subject: [PATCH] Remove env_path dependency --- config_manager.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config_manager.py b/config_manager.py index 22436b3..1c0f7eb 100644 --- a/config_manager.py +++ b/config_manager.py @@ -42,11 +42,8 @@ class Config: admin_user_id: int @classmethod - def load(cls, env_path: str = ".env") -> Self: - if not os.path.exists(env_path): - raise FileNotFoundError(f".env file not found: {env_path}") - - load_dotenv(env_path) + def load(cls) -> Self: + load_dotenv() bot_token = os.getenv("BOT_API_TOKEN", "") api_token = os.getenv("API_AUTH_TOKEN", "")