We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446e537 commit 6834bf7Copy full SHA for 6834bf7
githubnotifier.py
@@ -66,7 +66,8 @@ def get_github_user_info(username):
66
except (urllib2.URLError, httplib.HTTPException):
67
# Create a 'fake' user object in case of network errors
68
user = {'login': username}
69
-
+
70
71
else:
72
# Use cached userinfo
73
fp = open(info_cache, 'r')
@@ -82,7 +83,7 @@ def get_github_user_info(username):
82
83
84
gravatar_url = 'http://www.gravatar.com/avatar/?s=48'
85
try:
- avatar_data = urllib2.urlopen(user['avatar_url']).read()
86
+ avatar_data = urllib2.urlopen(gravatar_url).read()
87
88
# Cache the image
89
fp = open(user['avatar_path'], 'wb')
0 commit comments