From 0684c85e0acb30a72e523f3f9ab2ef784bb02ac1 Mon Sep 17 00:00:00 2001 From: Emil Sadek Date: Wed, 25 Oct 2023 12:49:04 -0700 Subject: [PATCH] fix: string formatting --- rudderstack/analytics/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rudderstack/analytics/client.py b/rudderstack/analytics/client.py index 3949e114..453d0458 100644 --- a/rudderstack/analytics/client.py +++ b/rudderstack/analytics/client.py @@ -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: