From 9429cbb3a6e27b8a12f29f23276b96b5b8ea5703 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Wed, 4 Dec 2024 17:47:52 +0400 Subject: [PATCH] fix: syntax error --- selfprivacy_api/graphql/mutations/users_mutations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfprivacy_api/graphql/mutations/users_mutations.py b/selfprivacy_api/graphql/mutations/users_mutations.py index 7c17d4b..466a22e 100644 --- a/selfprivacy_api/graphql/mutations/users_mutations.py +++ b/selfprivacy_api/graphql/mutations/users_mutations.py @@ -169,7 +169,7 @@ class UsersMutations: except SelfPrivacyAppIsOutdate: return UserMutationReturn( 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, ) @@ -204,7 +204,7 @@ class UsersMutations: message="User not found", code=404, ) - except Exception as e: # TODO why? + except Exception as e: # TODO why? return UserMutationReturn( success=False, message=str(e), @@ -236,7 +236,7 @@ class UsersMutations: message="User not found", code=404, ) - except Exception as e: # TODO why? + except Exception as e: # TODO why? return UserMutationReturn( success=False, message=str(e),