summary refs log tree commit diff
path: root/jenkins-sqlite.sh
diff options
context:
space:
mode:
authorAdrian Tschira <nota@notafile.com>2018-04-15 17:24:25 +0200
committerAdrian Tschira <nota@notafile.com>2018-04-15 20:16:59 +0200
commitbfc2ade9b3784469a5f7b80119fbd1679b6268c8 (patch)
tree43bc1165789efdf0b7e8149e1f89416713d385b3 /jenkins-sqlite.sh
parentMerge branch 'master' of https://github.com/matrix-org/synapse into develop (diff)
downloadsynapse-bfc2ade9b3784469a5f7b80119fbd1679b6268c8.tar.xz
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>
Diffstat (limited to 'jenkins-sqlite.sh')
0 files changed, 0 insertions, 0 deletions