Skip to content

Commit

Permalink
Add debug logging to failed Twitter API calls
Browse files Browse the repository at this point in the history
(This should not return anything sensitive. Actions log is public.)
  • Loading branch information
xdavidhu authored Oct 14, 2023
1 parent 3f6a5e2 commit 0012c53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def new_tweet(title, bounty, author, url, mention=False):
if r.status_code == 200:
return True
except:
print(f"[!] Twitter API call to '/2/tweets' failed:")
print(r.status_code)
print(r.content)
return False

return False
Expand Down

0 comments on commit 0012c53

Please sign in to comment.