mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Correctly handle null data in HttpPusher
This commit is contained in:
parent
e07384c4e1
commit
1d9df51ff1
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue