forked-synapse/synapse
Adrian Tschira bfc2ade9b3 Make event properties raise AttributeError instead
They raised KeyError before. I'm changing this because the code uses
hasattr() to check for the presence of a key. This worked accidentally
before, because hasattr() silences all exceptions in python 2. However,
in python3, this isn't the case anymore.

I had a look around to see if anything depended on this raising a
KeyError and I couldn't find anything. Of course, I could have simply
missed it.

Signed-off-by: Adrian Tschira <nota@notafile.com>
2018-04-15 20:16:59 +02:00
..
api Add b prefixes to some strings that are bytes in py3 2018-04-04 13:48:51 +02:00
app Merge pull request #3061 from NotAFile/add-some-byte-strings 2018-04-09 23:54:05 +01:00
appservice Add metrics for ResponseCache 2018-04-10 23:14:47 +01:00
config Merge pull request #3074 from NotAFile/fix-py3-prints 2018-04-09 23:44:41 +01:00
crypto Fix 500 when joining matrix-dev 2017-11-29 16:00:46 +00:00
events Make event properties raise AttributeError instead 2018-04-15 20:16:59 +02:00
federation fix federation_domain_whitelist 2018-04-13 15:47:43 +01:00
groups de-lint, quote consistency 2018-04-06 16:02:06 +01:00
handlers Merge pull request #3092 from matrix-org/rav/response_cache_metrics 2018-04-12 12:59:36 +01:00
http Merge pull request #3061 from NotAFile/add-some-byte-strings 2018-04-09 23:54:05 +01:00
metrics s/list/tuple 2018-04-12 11:19:04 +01:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Update comments 2018-02-21 11:29:49 +00:00
replication Add metrics for ResponseCache 2018-04-10 23:14:47 +01:00
rest Merge pull request #3079 from matrix-org/erikj/limit_concurrent_sends 2018-04-10 16:43:58 +01:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Format docstring 2018-04-12 12:07:09 +01:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Revert "Use sortedcontainers instead of blist" 2018-04-13 11:16:43 +01:00
__init__.py Bump version and Change log 2018-04-13 12:08:19 +01:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Clear logcontext before starting fed txn queue runner 2017-11-28 15:26:14 +00:00
python_dependencies.py Revert "Use sortedcontainers instead of blist" 2018-04-13 11:16:43 +01:00
server.py Split RoomMemberWorkerHandler to separate file 2018-03-14 11:41:45 +00:00
server.pyi Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
state.py Measure time it takes to calculate state group ID 2018-03-28 11:03:52 +01:00
types.py In DomainSpecificString, override __repr__ in addition to __str__ 2018-04-10 11:35:29 +02:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00