Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user