summary refs log tree commit diff
diff options
context:
space:
mode:
authorH. Shay <hillerys@element.io>2022-11-08 11:44:26 -0800
committerH. Shay <hillerys@element.io>2022-11-08 11:44:26 -0800
commit143211fa26a3d3bf5dfd06143982b3fe7b25fecf (patch)
tree91299fd0106efeba69db4ddd61b93cbe6cf943d0
parentremove unnecessary event context method (diff)
downloadsynapse-143211fa26a3d3bf5dfd06143982b3fe7b25fecf.tar.xz
lint
-rw-r--r--synapse/state/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py
index 30bbc0437a..8017529a1d 100644
--- a/synapse/state/__init__.py
+++ b/synapse/state/__init__.py
@@ -464,9 +464,7 @@ class StateHandler:
             # the context should have been updated when storing the state groups but let's
             # be sure - if it does not have a state group there is a problem
             if context._state_group is None:
-                raise RuntimeError(
-                    f"Event {event.event_id} is missing a state group."
-                )
+                raise RuntimeError(f"Event {event.event_id} is missing a state group.")
             current_state_group = context._state_group
 
             key = (event.type, event.state_key)