Skip to content

Commit 523c068

Browse files
authored
fix(aci): catch correct DoesNotExist error (#105678)
We are querying DataCondition, not DataConditionGroup
1 parent 8a9323a commit 523c068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/workflow_engine/endpoints/validators/base/data_condition_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def update_or_create_condition(self, condition_data: dict[str, Any]) -> DataCond
3030
if condition_id:
3131
try:
3232
condition = DataCondition.objects.get(id=condition_id)
33-
except DataConditionGroup.DoesNotExist:
33+
except DataCondition.DoesNotExist:
3434
raise serializers.ValidationError(f"Condition with id {condition_id} not found.")
3535

3636
condition = validator.update(condition, condition_data)

0 commit comments

Comments
 (0)