From 58891816eae682bf4d20a71c5f62b90308b0901a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 29 Oct 2017 20:45:19 +0100 Subject: [PATCH] buff --- notifier.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/notifier.py b/notifier.py index a079179b54..334f01c543 100644 --- a/notifier.py +++ b/notifier.py @@ -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() +