mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 08:29:23 -05:00
Correctly handle null data in HttpPusher
This commit is contained in:
parent
e07384c4e1
commit
1d9df51ff1
@ -97,6 +97,11 @@ class HttpPusher(object):
|
|||||||
pusherdict['pushkey'],
|
pusherdict['pushkey'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.data is None:
|
||||||
|
raise PusherConfigException(
|
||||||
|
"data can not be null for HTTP pusher"
|
||||||
|
)
|
||||||
|
|
||||||
if 'url' not in self.data:
|
if 'url' not in self.data:
|
||||||
raise PusherConfigException(
|
raise PusherConfigException(
|
||||||
"'url' required in data for HTTP pusher"
|
"'url' required in data for HTTP pusher"
|
||||||
|
Loading…
Reference in New Issue
Block a user