aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 36965ac..def3859 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -634,7 +634,7 @@ class Mastodon:
634 Returns a media dict. This contains the id that can be used in 634 Returns a media dict. This contains the id that can be used in
635 status_post to attach the media file to a toot. 635 status_post to attach the media file to a toot.
636 """ 636 """
637 if os.path.isfile(media_file) and mime_type == None: 637 if mime_type == None and os.path.isfile(media_file):
638 mime_type = mimetypes.guess_type(media_file)[0] 638 mime_type = mimetypes.guess_type(media_file)[0]
639 media_file = open(media_file, 'rb') 639 media_file = open(media_file, 'rb')
640 640
Powered by cgit v1.2.3 (git 2.41.0)