From d4d601e91a4af86507b57ab205177974e839facf Mon Sep 17 00:00:00 2001 From: Steven Skoczen Date: Wed, 21 Jan 2015 11:48:24 +0700 Subject: [PATCH] Fixes max size error message. --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index e822823..3e49838 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 700kb.') + raise TweepError('File is too big, must be less than kb.' % 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 700kb.') + raise TweepError('File is too big, must be less than kb.' % max_size) f.seek(0) # Reset to beginning of file fp = f -- 2.25.1