Skip to content

Commit

Permalink
Fix bug in fedmsg.text for tagger.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Nov 16, 2012
1 parent d64e86c commit cf446c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fedmsg/text/tagger.py
Expand Up @@ -31,7 +31,10 @@ class TaggerProcessor(BaseProcessor):
def link(self, msg, **config): def link(self, msg, **config):
vote = msg.get('msg', {}).get('vote', {}) vote = msg.get('msg', {}).get('vote', {})
pack = vote.get('tag', {}).get('package', {}) pack = vote.get('tag', {}).get('package', {})
return "https://apps.fedoraproject.org/tagger/" + pack.keys()[0] if pack:
return "https://apps.fedoraproject.org/tagger/" + pack.keys()[0]
else:
return ""


def subtitle(self, msg, **config): def subtitle(self, msg, **config):
if 'fedoratagger.tag.update' in msg['topic']: if 'fedoratagger.tag.update' in msg['topic']:
Expand Down

0 comments on commit cf446c1

Please sign in to comment.