1. BoldProgressives
  2. Untitled project
  3. trac-userpictures-plugin

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
  • Branches default

Comments (0)

Files changed (1)

File userpictures/providers/gravatar.py

View file
         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: