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 393d021..46a1b56 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -2136,7 +2136,7 @@ class Mastodon:
2136 2136
2137 # Load header, if specified 2137 # Load header, if specified
2138 if not header is None: 2138 if not header is None:
2139 if header_mime_type is None and (isinstance(avatar, str) and os.path.isfile(header)): 2139 if header_mime_type is None and (isinstance(header, str) and os.path.isfile(header)):
2140 header_mime_type = guess_type(header) 2140 header_mime_type = guess_type(header)
2141 header = open(header, 'rb') 2141 header = open(header, 'rb')
2142 2142
Powered by cgit v1.2.3 (git 2.41.0)