fix: catch ValueErrors on GraphQL set_service_configuration

This commit is contained in:
Inex Code 2024-07-23 17:11:50 +03:00
parent 3cf368588e
commit 98f0ec10fc

View file

@ -187,6 +187,13 @@ class ServicesMutations:
code=200,
service=service_to_graphql_service(service),
)
except ValueError as e:
return ServiceMutationReturn(
success=False,
message=e.args[0],
code=400,
service=service_to_graphql_service(service),
)
except Exception as e:
return ServiceMutationReturn(
success=False,