Mon, 09 Jun 2014 02:06:23 +0300
- don't crash if ticket data doesn't have a reporter name (can happen if the reporter is banned)
cobalt.py | file | annotate | diff | comparison | revisions |
--- 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 "<unknown>", \ data.handler.name if hasattr (data, 'handler') else "nobody", \ data.status.name, \ data.resolution.name))