Commits

Ethan Jucovy  committed b6e7a11

the map can positively return None, so we need to fall back on '' after the dict.get(), not within it

  • Participants
  • Parent commits fca319f

Comments (0)

Files changed (1)

File userpictures/providers/gravatar.py

         email = ''
         if '@' not in username:
             if username != 'anonymous':
-                email = self.email_map.get(username, '')
+                email = self.email_map.get(username) or ''
         else:
             author_info = self._long_author_re.match(username)
             if author_info: