Skip to content

Commit a5207dd

Browse files
committed
Changed response status_code to 200
Imported requests
1 parent 0e5d804 commit a5207dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/gravatar/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import hashlib
33

44
# Third Party (PyPI) Imports
5+
import requests
56
import six.moves.urllib as urllib
67

78
# Django Imports
@@ -53,5 +54,5 @@ def build_gravatar_url_for_email(email, size=GRAVATAR_DEFAULT_SIZE, default=GRAV
5354
def has_gravatar(email):
5455
url = get_gravatar_for_email(email, default='404')
5556
response = requests.get(url)
56-
has_gravatar = response.status_code == 404
57+
has_gravatar = response.status_code == 200
5758
return has_gravatar

0 commit comments

Comments
 (0)