From 3b4bbabe1ecafee40d9d5942fbd59c4056c8997c Mon Sep 17 00:00:00 2001 From: Steven Skoczen Date: Thu, 22 Jan 2015 21:39:17 +0700 Subject: [PATCH] Fixes missing string sub. --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 3e49838..a6d2076 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1244,7 +1244,7 @@ class API(object): if f is None: try: if os.path.getsize(filename) > (max_size * 1024): - raise TweepError('File is too big, must be less than kb.' % max_size) + raise TweepError('File is too big, must be less than %skb.' % max_size) except os.error: raise TweepError('Unable to access file') @@ -1253,7 +1253,7 @@ class API(object): else: f.seek(0, 2) # Seek to end of file if f.tell() > (max_size * 1024): - raise TweepError('File is too big, must be less than kb.' % max_size) + raise TweepError('File is too big, must be less than %skb.' % max_size) f.seek(0) # Reset to beginning of file fp = f -- 2.25.1