Opened 3 years ago

Last modified 18 months ago

#3228 new defect

KeyError in github_buildbot.py on commits by non-Github users

Reported by: The-Compiler Owned by:
Priority: major Milestone: 0.9.+
Version: master Keywords: github contrib
Cc:

Description

When a commit by an user not known to github (e.g. this) is pushed, github_buildbot.py has a KeyError? when trying to get the username of the change:

Traceback (most recent call last):
File "/usr/local/bin/github_buildbot.py", line 138, in render_POST
self.process_change(payload, user, repo, repo_url, project, request)
File "/usr/local/bin/github_buildbot.py", line 166, in process_change
change['author']['username'], change['author']['email'])
KeyError: 'username'

Change History (2)

comment:1 Changed 3 years ago by dustin

  • Milestone changed from undecided to 0.9.+
  • Version changed from 0.8.10 to master
Note: See TracTickets for help on using tickets.