# HG changeset patch # User Santeri Piippo # Date 1402268783 -10800 # Node ID bd9508f8a10fb463ce7b17901c5c1a2c9491af06 # Parent 53486417a8e5dd6ebad5ea045a2db9cfe5b09a1f - don't crash if ticket data doesn't have a reporter name (can happen if the reporter is banned) diff -r 53486417a8e5 -r bd9508f8a10f cobalt.py --- a/cobalt.py Sun May 25 15:24:07 2014 +0300 +++ b/cobalt.py Mon Jun 09 02:06:23 2014 +0300 @@ -238,7 +238,7 @@ self.privmsg (replyto, "Issue %s: %s: Reporter: %s, assigned to: %s, status: %s (%s)" % \ (ticket, \ data.summary, \ - data.reporter.name, \ + data.reporter.name if hasattr (data.reporter, 'name') else "", \ data.handler.name if hasattr (data, 'handler') else "nobody", \ data.status.name, \ data.resolution.name))