Skip to content

Commit

Permalink
Truncate social media error message to not overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Dec 12, 2023
1 parent 9dbaa23 commit 40f5333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/util/messaging/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _send_pending_posts(providers):
sentany = True
else:
sys.stderr.write("Failed to post to {}: {}\n".format(p, errmsg))
ConferenceTweetQueueErrorLog(tweet=t, message="Failed to post to {}: {}".format(p, errmsg)).save()
ConferenceTweetQueueErrorLog(tweet=t, message="Failed to post to {}: {}".format(p, errmsg)[:250]).save()
err = True
else:
sys.stderr.write("Not making empty post to {}\n".format(p))
Expand Down

0 comments on commit 40f5333

Please sign in to comment.