summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrewm@element.io>2022-10-18 09:23:50 +0100
committerAndrew Morgan <andrewm@element.io>2022-10-18 09:23:50 +0100
commita9709f07825af59fb379f3d8bffa47f81cc909f4 (patch)
tree2bb23b0c2615d5d15b0324ac1ca392d014e3075a
parentAdd missing 'continue' (diff)
downloadsynapse-a9709f07825af59fb379f3d8bffa47f81cc909f4.tar.xz
Fix up docstring
-rw-r--r--synapse/storage/databases/main/events_worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py
index 7cdc9fe98f..221864d9cc 100644
--- a/synapse/storage/databases/main/events_worker.py
+++ b/synapse/storage/databases/main/events_worker.py
@@ -374,7 +374,7 @@ class EventsWorkerStore(SQLBaseStore):
                 If there is a mismatch, behave as per allow_none.
 
         Returns:
-            The event, or None if the event was not found.
+            The event, or None if the event was not found and allow_none is `True`.
         """
         if not isinstance(event_id, str):
             raise TypeError("Invalid event event_id %r" % (event_id,))