summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-09-09 13:47:14 +0100
committerErik Johnston <erik@matrix.org>2015-09-09 13:47:14 +0100
commitc0d1f37baf33aeeab22e635b5fd7905ab07e39e3 (patch)
tree572d1e17610270314a6af24e51afca30898b70dc /scripts-dev
parentMerge branch 'master' into develop (diff)
downloadsynapse-c0d1f37baf33aeeab22e635b5fd7905ab07e39e3.tar.xz
Don't require pdus in check_auth script
Diffstat (limited to 'scripts-dev')
-rw-r--r--scripts-dev/check_auth.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts-dev/check_auth.py b/scripts-dev/check_auth.py
index b889ac7fa7..4fa8792a5f 100644
--- a/scripts-dev/check_auth.py
+++ b/scripts-dev/check_auth.py
@@ -56,10 +56,9 @@ if __name__ == '__main__':
 
     js = json.load(args.json)
 
-
     auth = Auth(Mock())
     check_auth(
         auth,
         [FrozenEvent(d) for d in js["auth_chain"]],
-        [FrozenEvent(d) for d in js["pdus"]],
+        [FrozenEvent(d) for d in js.get("pdus", [])],
     )