Skip to content

Commit 2f4deca

Browse files
committed
import exceptions from drf
1 parent ed5ee3c commit 2f4deca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sentry/core/endpoints/organization_details.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
from datetime import datetime, timedelta, timezone
66
from typing import TypedDict
77

8-
from django.core.exceptions import PermissionDenied
98
from django.db import models, router, transaction
109
from django.db.models.query_utils import DeferredAttribute
1110
from django.urls import reverse
1211
from django.utils import timezone as django_timezone
1312
from drf_spectacular.utils import OpenApiResponse, extend_schema, extend_schema_serializer
1413
from rest_framework import serializers, status
15-
from rest_framework.exceptions import NotFound
14+
from rest_framework.exceptions import NotFound, PermissionDenied
1615
from sentry_sdk import capture_exception
1716

1817
from bitfield.types import BitHandler

0 commit comments

Comments
 (0)