ihatemoney/ihatemoney/tests
zorun df6ffc7d86
Improve error handling when sending emails (#595)
In one case, we were not catching a family of possible exceptions
(socket.error), and in the two other cases there was no error handling at
all. Sending emails can easily fail if no email server is configured, so
it is really necessary to handle these errors instead of crashing with a
HTTP 500 error.

Refactor email sending code and add proper error handling.

Show alert messages that tell the user if an email was sent or if there
was an error.

When sending a password reminder email or inviting people by email, we
don't proceed to the next step in case of error, because sending emails is
the whole point of these actions.
2020-05-21 21:13:33 +02:00
..
__init__.py Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
ihatemoney.cfg Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
ihatemoney_envvar.cfg Absolute imports & some other improvements (#243) 2017-07-07 00:06:56 +02:00
tests.py Improve error handling when sending emails (#595) 2020-05-21 21:13:33 +02:00