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 9967bdb..1ae888d 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -565,7 +565,7 @@ class Mastodon:
565 Returns a media dict. This contains the id that can be used in 565 Returns a media dict. This contains the id that can be used in
566 status_post to attach the media file to a toot. 566 status_post to attach the media file to a toot.
567 """ 567 """
568 if os.path.isfile(media_file) and mime_type == None: 568 if mime_type == None and os.path.isfile(media_file):
569 mime_type = mimetypes.guess_type(media_file)[0] 569 mime_type = mimetypes.guess_type(media_file)[0]
570 media_file = open(media_file, 'rb') 570 media_file = open(media_file, 'rb')
571 571
Powered by cgit v1.2.3 (git 2.41.0)