# HG changeset patch # User Teemu Piippo # Date 1411950560 -10800 # Node ID 114afc110afd253f0b1be83f7cb98a64ce3829e8 # Parent 5767ee263b12eadaea37fa30da2f28671f46062c - fixed crash on listdevemails if there are no emails diff -r 5767ee263b12 -r 114afc110afd cobalt.py --- a/cobalt.py Mon Sep 29 03:26:45 2014 +0300 +++ b/cobalt.py Mon Sep 29 03:29:20 2014 +0300 @@ -847,9 +847,13 @@ elif command == 'listdevemails': check_admin (sender, ident, host, command) - for dev, emails in g_config['developer_emails'].iteritems(): - self.privmsg (replyto, 'Emails for %s: %s' % (dev, ', '.join (emails))) - #done + if 'developer_emails' in g_config: + for dev, emails in g_config['developer_emails'].iteritems(): + self.privmsg (replyto, 'Emails for %s: %s' % (dev, ', '.join (emails))) + #done + else + self.privmsg (replyto, 'No dev emails.') + #fi elif command == 'checkhg': check_admin (sender, ident, host, command) global repocheck_timeout