Fixed LLVMFailBuildGenerator.is_message_needed_by_results Avoid KeyError when build["prev_build"] is missing.
diff --git a/zorg/buildbot/reporters/utils.py b/zorg/buildbot/reporters/utils.py index 79e5579..ec8f887 100644 --- a/zorg/buildbot/reporters/utils.py +++ b/zorg/buildbot/reporters/utils.py
@@ -215,9 +215,9 @@ results = build["results"] # Check for mode == "problem" only. if results == FAILURE: - prev_build = build["prev_build"] + prev_build = build.get("prev_build") if ( - prev_build and prev_build["results"] == SUCCESS + prev_build and prev_build["results"] in [SUCCESS, WARNINGS] ): # Note != FAILURE in base return True return False