From d9b76a1d22492ccb270cf29d9c9a9ad5d5cfeb07 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 26 Jun 2023 11:38:23 +0200 Subject: [PATCH] Print full error message of twitter failures --- pgweb/news/management/commands/twitter_post.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pgweb/news/management/commands/twitter_post.py b/pgweb/news/management/commands/twitter_post.py index 4e2e1a85..bc93f29d 100644 --- a/pgweb/news/management/commands/twitter_post.py +++ b/pgweb/news/management/commands/twitter_post.py @@ -44,6 +44,7 @@ class Command(BaseCommand): }) if r.status_code != 201: print("Failed to post to twitter: %s " % r) + print(r.text) else: a.tweeted = True a.save() -- 2.39.5