From aa57929d1e9484fb2b4c0a675efae12547ddc8d0 Mon Sep 17 00:00:00 2001 From: Gareth Dunstone Date: Fri, 31 Jan 2020 11:45:58 +1100 Subject: fixed copy paste typo. Should be able to set header image now --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') 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: # Load header, if specified if not header is None: - if header_mime_type is None and (isinstance(avatar, str) and os.path.isfile(header)): + if header_mime_type is None and (isinstance(header, str) and os.path.isfile(header)): header_mime_type = guess_type(header) header = open(header, 'rb') -- cgit v1.2.3