diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-10-13 16:39:15 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-10-13 16:39:15 +0100 |
commit | 07639c79d9536cf293c550e5849ce6b5dd82189e (patch) | |
tree | d55672383c1cbcf17b2e19d1ce469991a8a507af /synapse/storage/keys.py | |
parent | Raise a SynapseError if the authorisation header is missing or malformed (diff) | |
download | synapse-07639c79d9536cf293c550e5849ce6b5dd82189e.tar.xz |
Respond with more helpful error messages for unsigned requests
Diffstat (limited to 'synapse/storage/keys.py')
-rw-r--r-- | synapse/storage/keys.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/keys.py b/synapse/storage/keys.py index 253dc17be2..8189e071a3 100644 --- a/synapse/storage/keys.py +++ b/synapse/storage/keys.py @@ -65,6 +65,7 @@ class KeyStore(SQLBaseStore): "ts_added_ms": time_now_ms, "tls_certificate": buffer(tls_certificate_bytes), }, + or_ignore=True, ) @defer.inlineCallbacks @@ -113,4 +114,5 @@ class KeyStore(SQLBaseStore): "ts_added_ms": time_now_ms, "verify_key": buffer(verify_key.encode()), }, + or_ignore=True, ) |