Another iteration on fix for crash when mime_type is NoneType

This commit is contained in:
JC Francois 2019-09-08 19:11:35 +02:00
parent 0eac3065d5
commit 1d4270cb00

View File

@ -316,7 +316,7 @@ def main(argv):
# Fix to avoid media_post failing because mime_type is NoneType
# "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:
mime_type = ""