summary refs log tree commit diff
diff options
context:
space:
mode:
-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)