mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 20:56:39 +00:00
fix: syntax error
This commit is contained in:
parent
ecb3f36f96
commit
9429cbb3a6
|
@ -169,7 +169,7 @@ class UsersMutations:
|
||||||
except SelfPrivacyAppIsOutdate:
|
except SelfPrivacyAppIsOutdate:
|
||||||
return UserMutationReturn(
|
return UserMutationReturn(
|
||||||
success=False,
|
success=False,
|
||||||
message="Error: Failed to change password.", PLEASE_UPDATE_APP_TEXT,
|
message=f"Error: Failed to change password. {PLEASE_UPDATE_APP_TEXT}",
|
||||||
code=400,
|
code=400,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ class UsersMutations:
|
||||||
message="User not found",
|
message="User not found",
|
||||||
code=404,
|
code=404,
|
||||||
)
|
)
|
||||||
except Exception as e: # TODO why?
|
except Exception as e: # TODO why?
|
||||||
return UserMutationReturn(
|
return UserMutationReturn(
|
||||||
success=False,
|
success=False,
|
||||||
message=str(e),
|
message=str(e),
|
||||||
|
@ -236,7 +236,7 @@ class UsersMutations:
|
||||||
message="User not found",
|
message="User not found",
|
||||||
code=404,
|
code=404,
|
||||||
)
|
)
|
||||||
except Exception as e: # TODO why?
|
except Exception as e: # TODO why?
|
||||||
return UserMutationReturn(
|
return UserMutationReturn(
|
||||||
success=False,
|
success=False,
|
||||||
message=str(e),
|
message=str(e),
|
||||||
|
|
Loading…
Reference in a new issue