summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-04-12 11:20:51 +0100
committerErik Johnston <erik@matrix.org>2018-04-12 11:20:51 +0100
commit23a7f9d7f4cfbf0333a1def526a59fb4b0f01067 (patch)
tree419a1bca6b2fc88cf45c1a302acee78fa2391dbf /synapse
parents/list/tuple (diff)
downloadsynapse-23a7f9d7f4cfbf0333a1def526a59fb4b0f01067.tar.xz
Doc we raise on unknown event
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/events_worker.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/events_worker.py b/synapse/storage/events_worker.py
index 769eb51489..88360b48b8 100644
--- a/synapse/storage/events_worker.py
+++ b/synapse/storage/events_worker.py
@@ -52,13 +52,14 @@ _EventCacheEntry = namedtuple("_EventCacheEntry", ("event", "redacted_event"))
 
 class EventsWorkerStore(SQLBaseStore):
     def get_received_ts(self, event_id):
-        """Get received_ts (when it was persisted) for the event
+        """Get received_ts (when it was persisted) for the event. Raises an
+        exception for unknown events.
 
         Args:
             event_id (str)
 
         Returns:
-            Deferred[int|None]: Timstamp in milliseconds, or None for events
+            Deferred[int|None]: Timestamp in milliseconds, or None for events
             that were persisted before received_ts was implemented.
         """
         return self._simple_select_one_onecol(