projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64b42e5
)
fixed bug for no saved file
author
fkropfhamer
<fabian.kropfhamer@gmail.com>
Sat, 8 Aug 2020 17:31:31 +0000
(19:31 +0200)
committer
fkropfhamer
<fabian.kropfhamer@gmail.com>
Sat, 8 Aug 2020 17:31:31 +0000
(19:31 +0200)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index 4a2599c76ff3c653b200271c81d0b9912d0d81d3..38b7a2e0a8dafceeb87268abe3fffc7c0eb5a73e 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-221,7
+221,7
@@
class API(object):
"""
f = kwargs.pop('file', None)
- file_type = imghdr.what(filename) or mimetypes.guess_type(filename)[0]
+ file_type = imghdr.what(filename
, f
) or mimetypes.guess_type(filename)[0]
if file_type == 'gif':
max_size = 14649
else: