mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-14 06:33:16 +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,
|
|
)
|