Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m46s

This commit is contained in:
i701 2025-05-30 14:07:47 +05:00
parent 20db39ee55
commit cc3d2ab3b7
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587

View File

@ -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: