mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-01 09:37:18 +00:00
13 lines
295 B
Python
13 lines
295 B
Python
from selfprivacy_api.graphql.mutations.mutation_interface import (
|
|
GenericJobMutationReturn,
|
|
)
|
|
|
|
|
|
def api_job_mutation_error(error: Exception, code: int = 400):
|
|
return GenericJobMutationReturn(
|
|
success=False,
|
|
code=code,
|
|
message=str(error),
|
|
job=None,
|
|
)
|