mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-12-12 16:18:48 +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,
|
|
)
|