fixed copy paste typo. Should be able to set header image now

pull/209/head
Gareth Dunstone 2020-01-31 11:45:58 +11:00
rodzic 995de2c6f9
commit aa57929d1e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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')