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: convert avatar deletion issues into a warning #2036

Merged
merged 4 commits into from Feb 7, 2019
Merged

fix: convert avatar deletion issues into a warning #2036

merged 4 commits into from Feb 7, 2019

Conversation

allanlw
Copy link

@allanlw allanlw commented Nov 14, 2018

Although the Contact model does silently ignore FileNotFound exceptions, any other sort of exception getting triggered by the underlying avatar deletion operation currently prevents saving the contact entirely.

Instead, make this a warning, and log it, but don't stop the entire contact saving process. If there's an error with the avatar deletion, it won't cause data loss, so it's strange to consider this an error.

This recently bit me while trying to get avatars working correctly with S3.

@allanlw allanlw changed the title wip: convert avatar deletion issues into a warning fix: convert avatar deletion issues into a warning Nov 14, 2018
@asbiin asbiin merged commit b091662 into monicahq:master Feb 7, 2019
@asbiin
Copy link
Member

asbiin commented Feb 7, 2019

Thank you @allanlw

@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants