From cc3d2ab3b7dd043b1700b13d86e8ed5fdca96e8d Mon Sep 17 00:00:00 2001 From: i701 Date: Fri, 30 May 2025 14:07:47 +0500 Subject: [PATCH] Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization --- api/sms.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/sms.py b/api/sms.py index c0473c9..008c878 100644 --- a/api/sms.py +++ b/api/sms.py @@ -7,11 +7,6 @@ logger = logging.getLogger(__name__) api_url = str(config("SMS_API_URL", cast=str, default="")) api_key = str(config("SMS_API_KEY", cast=str, default="")) -if not api_url or not api_key: - raise ValueError( - "SMS_API_URL and SMS_API_KEY must be set in the environment variables." - ) - def send_otp(mobile: str, otp: str, message: str): if not api_url or not api_key: