diff options
author | Erik Johnston <erikj@jki.re> | 2019-02-22 15:29:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-22 15:29:16 +0000 |
commit | d14e94bae49e3d2ec2ba5ea1ebd36e6b39b7dcc1 (patch) | |
tree | 2155320ecca321530b1ecd9793f31e355cf0211c /synapse/push/httppusher.py | |
parent | Merge pull request #4715 from matrix-org/erikj/fix_state_invalidation (diff) | |
parent | Add missing return (diff) | |
download | synapse-d14e94bae49e3d2ec2ba5ea1ebd36e6b39b7dcc1.tar.xz |
Merge pull request #4716 from matrix-org/erikj/pusher_logging
Fix up pusher logging a bit
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r-- | synapse/push/httppusher.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py index 899a5253d8..e65f8c63d3 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py @@ -97,6 +97,11 @@ class HttpPusher(object): pusherdict['pushkey'], ) + if self.data is None: + raise PusherConfigException( + "data can not be null for HTTP pusher" + ) + if 'url' not in self.data: raise PusherConfigException( "'url' required in data for HTTP pusher" |