Fix NoneType error in GH trigger when it has no pushed_at field
This appears to occur in new repositories that have not yet been pushed.
Fixes 234686591
/
This commit is contained in:
parent
4bee4dbfff
commit
4cb8412fd8
2 changed files with 7 additions and 2 deletions
|
@ -310,7 +310,7 @@ class GithubBuildTrigger(BuildTriggerHandler):
|
|||
'name': repo.name,
|
||||
'full_name': repo.full_name,
|
||||
'description': repo.description or '',
|
||||
'last_updated': timegm(repo.pushed_at.utctimetuple()),
|
||||
'last_updated': timegm(repo.pushed_at.utctimetuple()) if repo.pushed_at else 0,
|
||||
'url': repo.html_url,
|
||||
'has_admin_permissions': repo.permissions.admin,
|
||||
'private': repo.private,
|
||||
|
|
Reference in a new issue