From: Steven Skoczen Date: Thu, 22 Jan 2015 14:39:17 +0000 (+0700) Subject: Fixes missing string sub. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3b4bbabe1ecafee40d9d5942fbd59c4056c8997c;p=tweepy.git Fixes missing string sub. --- 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