Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

dev: Add details in logs for SMS auth issues

Clémence Lesnéee8a63bea107
diff --git a/main.py b/main.py
index 342aa41..66cf4e8 100644
--- a/main.py
+++ b/main.py
@@ -997,7 +997,9 @@ async def post_call_sms(call: CallModel) -> None:
)
except ClientAuthenticationError:
- _logger.error("Authentication error for SMS, check the credentials")
+ _logger.error(
+ "Authentication error for SMS, check the credentials", exc_info=True
+ )
except Exception:
_logger.warn(
f"Failed SMS to {call.phone_number} ({call.call_id})", exc_info=True