Skip to content

Commit

Permalink
raise caught exception and remove typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
Anish9901 committed Apr 22, 2024
1 parent 54056ab commit 98a3315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mathesar/api/ui/serializers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def validate_old_password(self, value):
def validate_password(self, value):
try:
validate_password(value)
except DjangoValidationError as exc:
raise DjangoValidationError(str(exc))
except DjangoValidationError as e:
raise e
return value

def update(self, instance, validated_data):
Expand Down

0 comments on commit 98a3315

Please sign in to comment.