File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments