Fix SMS API configuration to provide default values for missing environment variables
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m57s

This commit is contained in:
i701 2025-04-19 16:31:33 +05:00
parent c006525aaa
commit 2431793886
Signed by: i701
GPG Key ID: 54A0DA1E26D8E587

View File

@ -4,8 +4,8 @@ import json
import logging
logger = logging.getLogger(__name__)
api_url = config("SMS_API_URL")
api_key = config("SMS_API_KEY")
api_url = config("SMS_API_URL", default="")
api_key = config("SMS_API_KEY", default="")
def send_otp(mobile: str, otp: int, message: str):