Skip to content
Snippets Groups Projects
Commit 1d9df51f authored by Erik Johnston's avatar Erik Johnston
Browse files

Correctly handle null data in HttpPusher

parent e07384c4
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment