[Buildbot-commits] [Buildbot] #2185: GerritChangeSource: owner email can be missing

Buildbot nobody at buildbot.net
Fri Jan 27 11:05:07 UTC 2012


#2185: GerritChangeSource: owner email can be missing
--------------------+-----------------------
Reporter:  sanxiyn  |      Owner:
    Type:  defect   |     Status:  new
Priority:  major    |  Milestone:  undecided
 Version:  0.8.5    |   Keywords:  gerrit
--------------------+-----------------------
 I got:

 {{{
 Traceback (most recent call last):
   File "/home/tinuviel/buildbot/master/gerritchangesource.py", line 125,
 in eventReceived_patchset_created
     author="%s <%s>" % (change["owner"]["name"],
 change["owner"]["email"]),
 exceptions.KeyError: 'email'
 }}}

 In general, as you can read at [http://gerrit-
 documentation.googlecode.com/svn/Documentation/2.2.2/json.html Gerrit
 documentation], "any field may be missing in the JSON messages, so
 consumers of this JSON stream should deal with that appropriately".

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2185>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list