Skip to content

Commit b225a3e

Browse files
Return empty string from .get
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
1 parent 406d38b commit b225a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/utils/performance_issues/detectors/consecutive_db_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def is_event_eligible(cls, event, project: Project = None) -> bool:
216216

217217
if request:
218218
url = request.get("url", "") or ""
219-
method = request.get("http.method") or request.get("method", "") or ""
219+
method = request.get("http.method", "") or request.get("method", "") or ""
220220
if url.endswith("/graphql") and method.lower() in ["post", "get"]:
221221
return False
222222

0 commit comments

Comments
 (0)