Permalink
Browse files

Fix bug in fedmsg.text for tagger.

  • Loading branch information...
1 parent d64e86c commit cf446c13a77d5789dba15c368bf6ef4aea3f4f50 @ralphbean committed Nov 16, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 fedmsg/text/tagger.py
View
@@ -31,7 +31,10 @@ class TaggerProcessor(BaseProcessor):
def link(self, msg, **config):
vote = msg.get('msg', {}).get('vote', {})
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):
if 'fedoratagger.tag.update' in msg['topic']:

0 comments on commit cf446c1

Please sign in to comment.