def get_bug_list(self):
        """Returns a list of bugs associated with this review request."""
        if self.bugs_closed == "":
            return []

        bugs = list(set(re.split(r"[, ]+", self.bugs_closed)))

        # First try a numeric sort, to show the best results for the majority
        # case of bug trackers with numeric IDs.  If that fails, sort
        # alphabetically.
        try:
            bugs.sort(key=int)
        except __HOLE__:
            bugs.sort()

        return bugs
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/models/base_review_request_details.py/BaseReviewRequestDetails.get_bug_list