Skip to content

Commit 1541240

Browse files
authored
Fix data_category for sessions envelope items (getsentry#3473)
1 parent 2e991c7 commit 1541240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/envelope.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def type(self):
260260
def data_category(self):
261261
# type: (...) -> EventDataCategory
262262
ty = self.headers.get("type")
263-
if ty == "session":
263+
if ty == "session" or ty == "sessions":
264264
return "session"
265265
elif ty == "attachment":
266266
return "attachment"

0 commit comments

Comments
 (0)