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: Don't crash on invalid avatars #566

Merged
merged 2 commits into from Mar 24, 2024
Merged

fix: Don't crash on invalid avatars #566

merged 2 commits into from Mar 24, 2024

Conversation

nikclayton
Copy link
Contributor

Workaround a Glide bug where the error() handler is not always called, in this case when the URL does not resolve to an image; for example, a misconfigured server that redirects requests for the image to an HTML page.

Catch the exception and use the default avatar image in these cases.

Workaround a Glide bug where the error() handler is not always called, in this
case when the URL does not resolve to an image; for example, a misconfigured
server that redirects requests for the image to an HTML page.

Catch the exception and use the default avatar image in these cases.
@nikclayton nikclayton merged commit 0bb269a into main Mar 24, 2024
6 checks passed
@nikclayton nikclayton deleted the nikclayton-patch-1 branch March 24, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant