Skip to content

Commit 14fb24a

Browse files
[crash/analyzer] Failback to reports from crash clouseau (#2361)
1 parent 0544d6a commit 14fb24a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

bugbot/crash/analyzer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,15 +592,16 @@ def fetch_representative_processed_crash(self) -> dict:
592592
for i, report in enumerate(candidate_reports):
593593
uuid = report["uuid"]
594594
processed_crash = socorro.ProcessedCrash.get_processed(uuid)[uuid]
595+
596+
if first_representative_report is None:
597+
first_representative_report = processed_crash
598+
595599
if (
596600
limit_to_top_proto_signature
597601
and processed_crash["proto_signature"] != self.top_proto_signature
598602
):
599603
continue
600604

601-
if first_representative_report is None:
602-
first_representative_report = processed_crash
603-
604605
if not self._is_corrupted_crash_stack(processed_crash):
605606
return processed_crash
606607

@@ -614,7 +615,7 @@ def fetch_representative_processed_crash(self) -> dict:
614615
return first_representative_report
615616

616617
raise NoCrashReportFoundError(
617-
f"No crash report found with the most frequent proto signature for {self.signature_term}."
618+
f"No crash report found for {self.signature_term}."
618619
)
619620

620621
@cached_property

0 commit comments

Comments
 (0)