Permalink
Browse files

Fixed bugs in get_image_url.

  • Loading branch information...
mihanovak committed Jun 4, 2012
1 parent d02fdc8 commit 9e6a9292241600cd6e040e084ab0e5210b2fc357
Showing with 2 additions and 2 deletions.
  1. +2 −2 piplmesh/account/models.py
@@ -101,10 +101,10 @@ def get_image_url(self):
return '%s?type=square' % utils.graph_api_url('%s/picture' % self.username)
elif self.foursquare_profile_data:
- return self.foursquare_profile_data.photo
+ return self.foursquare_profile_data.get('photo')
elif self.google_profile_data:
- return self.google_profile_data.picture
+ return self.google_profile_data.get('picture')
elif self.email:
request = client.RequestFactory(**settings.DEFAULT_REQUEST).request()

0 comments on commit 9e6a929

Please sign in to comment.