Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions bugbot/crash/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,16 @@ def fetch_representative_processed_crash(self) -> dict:
for i, report in enumerate(candidate_reports):
uuid = report["uuid"]
processed_crash = socorro.ProcessedCrash.get_processed(uuid)[uuid]

if first_representative_report is None:
first_representative_report = processed_crash

if (
limit_to_top_proto_signature
and processed_crash["proto_signature"] != self.top_proto_signature
):
continue

if first_representative_report is None:
first_representative_report = processed_crash

if not self._is_corrupted_crash_stack(processed_crash):
return processed_crash

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

raise NoCrashReportFoundError(
f"No crash report found with the most frequent proto signature for {self.signature_term}."
f"No crash report found for {self.signature_term}."
)

@cached_property
Expand Down