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:
2025-04-19 16:31:33 +05:00
parent c006525aaa
commit 2431793886

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