From 7256578ec7f25b68ba0dfd8224c147615c018d01 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Wed, 8 Apr 2026 11:30:07 +0330 Subject: [PATCH] conflict error --- apps/gooyal_oauth2/throttling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gooyal_oauth2/throttling.py b/apps/gooyal_oauth2/throttling.py index 03c5e70..6373213 100644 --- a/apps/gooyal_oauth2/throttling.py +++ b/apps/gooyal_oauth2/throttling.py @@ -1,7 +1,6 @@ from rest_framework.throttling import UserRateThrottle from apps.gooyal_oauth2.models import AccessToken -from utils.exceptions import Conflict def get_application(request): @@ -33,6 +32,7 @@ class TokenLimitThrottle: if request.auth.token in active_tokens: return True else: + from utils.exceptions import Conflict raise Conflict(code='max_allowed_session_reached') else: