mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-25 17:38:43 +00:00
Another iteration on fix for crash when mime_type is NoneType
This commit is contained in:
parent
0eac3065d5
commit
1d4270cb00
2
twoot.py
2
twoot.py
@ -316,7 +316,7 @@ def main(argv):
|
|||||||
|
|
||||||
# Fix to avoid media_post failing because mime_type is NoneType
|
# Fix to avoid media_post failing because mime_type is NoneType
|
||||||
# "Can only concatenate str to str"
|
# "Can only concatenate str to str"
|
||||||
mime_type = media.headers.get('content-type')
|
mime_type = media.headers['content-type']
|
||||||
if type(mime_type) is None:
|
if type(mime_type) is None:
|
||||||
mime_type = ""
|
mime_type = ""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user