Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
enochtangg committed Jun 11, 2024
1 parent a2235f5 commit f6e223e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snuba/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def dataset_query(
result = run_query(dataset, request, timer)
assert result.extra["stats"]
except InvalidQueryException as exception:
details: Mapping[str, Any]
details = {
"type": "invalid_query",
"message": str(exception),
Expand All @@ -387,8 +388,6 @@ def dataset_query(
)
except QueryException as exception:
status = 500
details: Mapping[str, Any]

cause = exception.__cause__
if isinstance(cause, (RateLimitExceeded, AllocationPolicyViolations)):
status = 429
Expand Down

0 comments on commit f6e223e

Please sign in to comment.