Closed mattsb42 closed 5 years ago
@mattsb42 Thanks for reporting. This should be an easy fix.
PR has been merged. Will be available in v1.1.0, but publishing to SAR is delayed. ETA for the new release is 10/9.
Fixed in v1.1.0 (now released and published to SAR)
When a CodeBuild build is triggered by something other than a PR (ex: manually), the
sourceVersion
field might not be present in the build details.Because this field is currently retrieved by a getitem call[1], if the key is not found, a
KeyError
is thrown[2].[1] https://github.com/jlhood/github-codebuild-logs/blob/master/src/build.py#L27-L32 [2]