From 43096d6b3fec30407bba9a4ccf061a8f1573e6ec Mon Sep 17 00:00:00 2001 From: fabston Date: Tue, 27 Apr 2021 12:29:15 +0200 Subject: [PATCH] Fixed Twitter message body. --- handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.py b/handler.py index 72552b2..83838e7 100644 --- a/handler.py +++ b/handler.py @@ -56,7 +56,7 @@ def send_alert(data): tw_auth.set_access_token(config.tw_atoken, config.tw_asecret) tw_api = tweepy.API(tw_auth) try: - tw_api.update_status(status=data) + tw_api.update_status(status=data['msg']) except Exception as e: print('[X] Twitter Error:\n>', e)