forked from platypush/platypush
buff
This commit is contained in:
parent
0b0d94fee3
commit
58891816ea
1 changed files with 3 additions and 2 deletions
|
@ -36,9 +36,9 @@ def on_push(data):
|
||||||
if 'body' not in push:
|
if 'body' not in push:
|
||||||
return
|
return
|
||||||
|
|
||||||
body = None
|
body = push['body']
|
||||||
try:
|
try:
|
||||||
body = json.loads(push['body'])
|
body = json.loads(body)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -66,3 +66,4 @@ def main():
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue