|
@@ -2,7 +2,7 @@ from __future__ import absolute_import
|
|
|
|
|
|
from rest_framework.response import Response
|
|
from rest_framework.response import Response
|
|
|
|
|
|
-from sentry.api.bases import OrganizationEventsEndpointBase, OrganizationEventsError
|
|
|
|
|
|
+from sentry.api.bases import OrganizationEventsEndpointBase, OrganizationEventsError, NoProjects
|
|
from sentry.api.serializers import serialize
|
|
from sentry.api.serializers import serialize
|
|
from sentry.tagstore.snuba.backend import SnubaTagStorage
|
|
from sentry.tagstore.snuba.backend import SnubaTagStorage
|
|
|
|
|
|
@@ -14,6 +14,8 @@ class OrganizationTagsEndpoint(OrganizationEventsEndpointBase):
|
|
filter_params = self.get_filter_params(request, organization)
|
|
filter_params = self.get_filter_params(request, organization)
|
|
except OrganizationEventsError as exc:
|
|
except OrganizationEventsError as exc:
|
|
return Response({'detail': exc.message}, status=400)
|
|
return Response({'detail': exc.message}, status=400)
|
|
|
|
+ except NoProjects:
|
|
|
|
+ return Response([])
|
|
|
|
|
|
# TODO(jess): update this when snuba tagstore is the primary backend for us
|
|
# TODO(jess): update this when snuba tagstore is the primary backend for us
|
|
tagstore = SnubaTagStorage()
|
|
tagstore = SnubaTagStorage()
|