diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-08 11:24:53 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-08 11:24:53 +0100 |
commit | 34101427417f58418a9587adfeca3d41898b5e24 (patch) | |
tree | f1cb2f39d3838b1dcf709c3f3921dbe82afdd3a5 /synapse/storage/events.py | |
parent | Update changelog (diff) | |
parent | Merge pull request #992 from matrix-org/erikj/psutil_conditional (diff) | |
download | synapse-34101427417f58418a9587adfeca3d41898b5e24.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into release-v0.17.0
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index e4dbaa3547..d2feee8dbb 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -350,7 +350,7 @@ class EventsStore(SQLBaseStore): ) if not events and not allow_none: - raise RuntimeError("Could not find event %s" % (event_id,)) + raise SynapseError(404, "Could not find event %s" % (event_id,)) defer.returnValue(events[0] if events else None) |