diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-05 15:31:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-05 15:31:02 +0100 |
commit | a8b946decbc8d43fe51313235460076da400f720 (patch) | |
tree | 379243f4274afd375a77a5fdefa4d5410adf34be /synapse/storage | |
parent | Merge pull request #987 from matrix-org/erikj/fix_backfill_auth (diff) | |
download | synapse-a8b946decbc8d43fe51313235460076da400f720.tar.xz |
Raise 404 when couldn't find event
Diffstat (limited to '')
-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) |