Skip to content

Commit

Permalink
fix: string formatting
Browse files Browse the repository at this point in the history
fix: string formatting
  • Loading branch information
itsdebs authored Jan 8, 2024
2 parents 89c592c + 0684c85 commit a8d617c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rudderstack/analytics/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _enqueue(self, msg):
# Check message size.
msg_size = len(json.dumps(msg, cls=DatetimeSerializer).encode())
if msg_size > MAX_MSG_SIZE:
raise RuntimeError('Message exceeds %skb limit. (%s)', str(int(MAX_MSG_SIZE / 1024)), str(msg))
raise RuntimeError(f'Message exceeds {str(int(MAX_MSG_SIZE / 1024))}kb limit. ({str(msg)})')

# if send is False, return msg as if it was successfully queued
if not self.send:
Expand Down

0 comments on commit a8d617c

Please sign in to comment.