This commit is contained in:
Fabio Manganiello 2017-10-29 20:45:19 +01:00
parent 0b0d94fee3
commit 58891816ea

View file

@ -36,9 +36,9 @@ def on_push(data):
if 'body' not in push:
return
body = None
body = push['body']
try:
body = json.loads(push['body'])
body = json.loads(body)
except ValueError as e:
return
@ -66,3 +66,4 @@ def main():
if __name__ == '__main__':
main()