mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
sentry: Verify version is supported, first.
Raven SDK does not send a `title` field.
This commit is contained in:
committed by
Tim Abbott
parent
d688e18de2
commit
01658e39a9
@@ -90,12 +90,11 @@ def convert_lines_to_traceback_string(lines: Optional[List[str]]) -> str:
|
|||||||
|
|
||||||
def handle_event_payload(event: Dict[str, Any]) -> Tuple[str, str]:
|
def handle_event_payload(event: Dict[str, Any]) -> Tuple[str, str]:
|
||||||
""" Handle either an exception type event or a message type event payload."""
|
""" Handle either an exception type event or a message type event payload."""
|
||||||
subject = event["title"]
|
|
||||||
|
|
||||||
# We shouldn't support the officially deprecated Raven series of SDKs.
|
# We shouldn't support the officially deprecated Raven series of SDKs.
|
||||||
if int(event["version"]) < 7:
|
if int(event["version"]) < 7:
|
||||||
raise UnsupportedWebhookEventType("Raven SDK")
|
raise UnsupportedWebhookEventType("Raven SDK")
|
||||||
|
|
||||||
|
subject = event["title"]
|
||||||
platform_name = event["platform"]
|
platform_name = event["platform"]
|
||||||
syntax_highlight_as = syntax_highlight_as_map.get(platform_name, "")
|
syntax_highlight_as = syntax_highlight_as_map.get(platform_name, "")
|
||||||
if syntax_highlight_as == "": # nocoverage
|
if syntax_highlight_as == "": # nocoverage
|
||||||
|
|||||||
Reference in New Issue
Block a user