Merge remote-tracking branch 'origin/master'

This commit is contained in:
Андрей Сумин
2025-03-01 23:58:36 +03:00
9 changed files with 244 additions and 68 deletions
+4 -1
View File
@@ -19,7 +19,10 @@ class BearerAuth(HttpBearer):
except Exception:
raise AuthenticationError
user = User.objects.get(id=data["id"])
try:
user = User.objects.get(id=data["id"])
except User.DoesNotExist:
raise AuthenticationError
return user
@staticmethod