projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ca4ea
)
Update api.py
author
RussellTaylor83
<rt@russtaylor.co.uk>
Sat, 21 Feb 2015 09:56:00 +0000
(09:56 +0000)
committer
RussellTaylor83
<rt@russtaylor.co.uk>
Sat, 21 Feb 2015 09:56:00 +0000
(09:56 +0000)
Made catch statement error message more explicit for _pack_image
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index 9fdd9bc8acb50ab27373a0033dbc5ab674de22c7..4744275829945ed6e0e52f1befe5b3d091d4cc2a 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-1271,8
+1271,8
@@
class API(object):
try:
if os.path.getsize(filename) > (max_size * 1024):
raise TweepError('File is too big, must be less than %skb.' % max_size)
- except os.error:
- raise TweepError('Unable to access file
'
)
+ except os.error
as e
:
+ raise TweepError('Unable to access file
: %s' % e.strerror
)
# build the mulitpart-formdata body
fp = open(filename, 'rb')