Skip to content

Commit

Permalink
Merge pull request #3110 from DimStar77/fix_crash
Browse files Browse the repository at this point in the history
check_source: fix crash AttributeError: 'CheckSource' object has no attribute 'review_message'
  • Loading branch information
DimStar77 committed Jun 17, 2024
2 parents 9d63fee + 706a18f commit 864dffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ def check_source_submission(
scm_pool_repository = f"https://src.opensuse.org/pool/{source_package}"
if not scm_sync.text.startswith(scm_pool_repository):
# devel project uses scm sync not from the trusted src location
self.review_message['declined'] = f"Expected a devel project scm sync from {scm_pool_repository}"
self.review_messages['declined'] = f"Expected a devel project scm sync from {scm_pool_repository}"
return False
if not self.source_is_scm_staging_submission(source_project):
# Not a submission coming from the scm-sync bot
self.review_message['declined'] = "Expected a submitrequest coming from scm-sync project"
self.review_messages['declined'] = "Expected a submitrequest coming from scm-sync project"
return False

else:
Expand Down

0 comments on commit 864dffa

Please sign in to comment.