mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 04:01:27 +00:00
fix: catch ValueErrors on GraphQL set_service_configuration
This commit is contained in:
parent
3cf368588e
commit
98f0ec10fc
|
@ -187,6 +187,13 @@ class ServicesMutations:
|
||||||
code=200,
|
code=200,
|
||||||
service=service_to_graphql_service(service),
|
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:
|
except Exception as e:
|
||||||
return ServiceMutationReturn(
|
return ServiceMutationReturn(
|
||||||
success=False,
|
success=False,
|
||||||
|
|
Loading…
Reference in a new issue