Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Error handling send email notification #179 #222

Merged
merged 4 commits into from
Feb 11, 2022

Conversation

aagman945
Copy link
Contributor

Added exception handling for the issue #179 and test for the same . So ,If throws exception the function will be returned empty and mail will not be sent.

Copy link
Member

@pandafy pandafy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aagman945 kindly read the contributing guidelines and update your editor settings as mentioned here https://openwisp.io/docs/developer/contributing.html#avoiding-unnecessary-changes.

Doing so would have reduced requested changes in this PR. The commit message needs to be updated as well.

Also, always run ./run-qa-check before pushing changes to GitHub.

openwisp_notifications/tests/test_notifications.py Outdated Show resolved Hide resolved
openwisp_notifications/tests/test_notifications.py Outdated Show resolved Hide resolved
openwisp_notifications/tests/test_notifications.py Outdated Show resolved Hide resolved
openwisp_notifications/tests/test_notifications.py Outdated Show resolved Hide resolved
openwisp_notifications/tests/test_notifications.py Outdated Show resolved Hide resolved
@pandafy pandafy added this to In progress in OpenWISP Priorities for next releases via automation Feb 3, 2022
@aagman945 aagman945 changed the title Error handling send_email_notification fixed #179 [Fix] Error handling send email notification #179 Feb 5, 2022
openwisp_notifications/handlers.py Outdated Show resolved Hide resolved
openwisp_notifications/handlers.py Outdated Show resolved Hide resolved
openwisp_notifications/handlers.py Outdated Show resolved Hide resolved
openwisp_notifications/tests/test_notifications.py Outdated Show resolved Hide resolved
OpenWISP Priorities for next releases automation moved this from In progress to Reviewer approved Feb 11, 2022
@pandafy
Copy link
Member

pandafy commented Feb 11, 2022

Thanks for contributing @aagman945!

@pandafy pandafy merged commit 6cac725 into openwisp:master Feb 11, 2022
OpenWISP Priorities for next releases automation moved this from Reviewer approved to Done Feb 11, 2022
@aagman945 aagman945 deleted the issue-179 branch February 11, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants