Skip to content

Commit

Permalink
Changed response status_code to 200
Browse files Browse the repository at this point in the history
Imported requests
  • Loading branch information
lleung030 committed Dec 6, 2023
1 parent 0e5d804 commit a5207dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gravatar/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import hashlib

# Third Party (PyPI) Imports
import requests
import six.moves.urllib as urllib

# Django Imports
Expand Down Expand Up @@ -53,5 +54,5 @@ def build_gravatar_url_for_email(email, size=GRAVATAR_DEFAULT_SIZE, default=GRAV
def has_gravatar(email):
url = get_gravatar_for_email(email, default='404')
response = requests.get(url)
has_gravatar = response.status_code == 404
has_gravatar = response.status_code == 200
return has_gravatar

0 comments on commit a5207dd

Please sign in to comment.