diff --git a/argus/backend/plugins/driver_matrix_tests/model.py b/argus/backend/plugins/driver_matrix_tests/model.py index c882f0f8..a9cd4458 100644 --- a/argus/backend/plugins/driver_matrix_tests/model.py +++ b/argus/backend/plugins/driver_matrix_tests/model.py @@ -8,6 +8,7 @@ from uuid import UUID from xml.etree import ElementTree from cassandra.cqlengine import columns +from cassandra.cqlengine.models import Model from argus.backend.db import ScyllaCluster from argus.backend.models.web import ArgusRelease from argus.backend.plugins.core import PluginModelBase @@ -412,7 +413,10 @@ def get_events(self) -> list: def submit_product_version(self, version: str): self.scylla_version = version - new_assignee = self.get_assignment(version) + try: + new_assignee = self.get_assignment(version) + except Model.DoesNotExist: + new_assignee = None if new_assignee: self.assignee = new_assignee diff --git a/argus/backend/plugins/generic/model.py b/argus/backend/plugins/generic/model.py index 7c6702b4..eb6d4208 100644 --- a/argus/backend/plugins/generic/model.py +++ b/argus/backend/plugins/generic/model.py @@ -41,7 +41,10 @@ def submit_product_version(self, version: str): pattern = re.compile(r"((?P[\w.~]+)-(?P(0\.)?(?P[0-9]{8,8})\.(?P\w+).*))") if match := pattern.search(version): self.scylla_version = match.group("short") - new_assignee = self.get_assignment(match.group("short")) + try: + new_assignee = self.get_assignment(match.group("short")) + except Model.DoesNotExist: + new_assignee = None if new_assignee: self.assignee = new_assignee self.set_full_version(version) diff --git a/argus/backend/plugins/sct/testrun.py b/argus/backend/plugins/sct/testrun.py index 89b75b98..2e93f5a2 100644 --- a/argus/backend/plugins/sct/testrun.py +++ b/argus/backend/plugins/sct/testrun.py @@ -216,7 +216,10 @@ def get_events(self) -> list[EventsBySeverity]: def submit_product_version(self, version: str): self.scylla_version = version - new_assignee = self.get_assignment(version) + try: + new_assignee = self.get_assignment(version) + except Model.DoesNotExist: + new_assignee = None if new_assignee: self.assignee = new_assignee diff --git a/argus/backend/plugins/sirenada/model.py b/argus/backend/plugins/sirenada/model.py index 16744047..7246c5b2 100644 --- a/argus/backend/plugins/sirenada/model.py +++ b/argus/backend/plugins/sirenada/model.py @@ -61,7 +61,10 @@ def get_distinct_product_versions(cls, release: ArgusRelease, cluster: ScyllaClu def submit_product_version(self, version: str): self.scylla_version = version - new_assignee = self.get_assignment(version) + try: + new_assignee = self.get_assignment(version) + except Model.DoesNotExist: + new_assignee = None if new_assignee: self.assignee = new_assignee