Print full error message of twitter failures
authorMagnus Hagander <magnus@hagander.net>
Mon, 26 Jun 2023 09:38:23 +0000 (11:38 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 26 Jun 2023 09:38:23 +0000 (11:38 +0200)
pgweb/news/management/commands/twitter_post.py

index 4e2e1a85de23e40b57e345c3548220a73d23d43e..bc93f29da6919f059672b677297be4f484296da0 100644 (file)
@@ -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()