Show More
@@ -637,7 +637,11 b' class PullRequestModel(BaseModel):' | |||||
637 | pull_request_version = self._create_version_from_snapshot(pull_request) |
|
637 | pull_request_version = self._create_version_from_snapshot(pull_request) | |
638 | self._link_comments_to_version(pull_request_version) |
|
638 | self._link_comments_to_version(pull_request_version) | |
639 | else: |
|
639 | else: | |
640 | ver = pull_request.versions[-1] |
|
640 | try: | |
|
641 | ver = pull_request.versions[-1] | |||
|
642 | except IndexError: | |||
|
643 | ver = None | |||
|
644 | ||||
641 | pull_request.pull_request_version_id = \ |
|
645 | pull_request.pull_request_version_id = \ | |
642 | ver.pull_request_version_id if ver else None |
|
646 | ver.pull_request_version_id if ver else None | |
643 | pull_request_version = pull_request |
|
647 | pull_request_version = pull_request |
General Comments 0
You need to be logged in to leave comments.
Login now