Closed emanuelen5 closed 7 months ago
The recent updates focus on refining exception handling in the SMS sending functionality. Specifically, a new exception type, NoAuthConfigured
, has been introduced to better manage scenarios where authentication configurations are missing. This change improves the clarity and specificity of error management, enhancing the system's robustness and the developer's ability to debug issues related to SMS dispatching.
File | Change Summary |
---|---|
.../change_phone_request.py |
Added handling for NoAuthConfigured exception, including specific error messages. |
.../dispatch_sms.py |
Replaced UnprocessableEntity with NoAuthConfigured to accurately reflect errors related to missing authentication configurations, along with updated log messages. |
api/src/dispatch_sms.py (1)
`10-11`: The custom exception `NoAuthConfigured` is well-defined for its intended use.
I like the code rabbit suggestions, might be worth adding those but looks good
Relates to #493.
Previously you would just get the following popup when you tried to register locally but didn't have 46elks configured:
Summary by CodeRabbit