docstring

This commit is contained in:
Klaas van Schelven
2024-04-05 15:50:06 +02:00
parent 9dfae5a829
commit 7caf6bbac4

View File

@@ -3,6 +3,9 @@ from sentry.utils.strings import strip, truncatechars
class DefaultEvent:
"""The DefaultEvent is the Event for which there is no exception set. Given the implementation of `get_title`, I'd
actually say that this is basically the LogMessageEvent.
"""
def get_title(self, data):
message = strip(
@@ -12,4 +15,5 @@ class DefaultEvent:
if message:
return truncatechars(message.splitlines()[0], 100)
return "<unlabeled event>"