Skip to content

Commit

Permalink
fix: check if annotations are available in the report
Browse files Browse the repository at this point in the history
checks if annotations are in the generated report before
referencing them.
  • Loading branch information
KevinDeJong-TomTom committed Jun 10, 2021
1 parent 74b505a commit 5c6a600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitbucket_code_insight_reporter/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def report(
print("ERR - Failed to create new Code Insight Report")
return 1

_annotations = _report["annotations"]
_annotations = _report.get("annotations", None)
if not _annotations:
return 0

Expand Down

0 comments on commit 5c6a600

Please sign in to comment.