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

This commit is contained in:
Gareth Dunstone 2020-01-31 11:45:58 +11:00
pare 995de2c6f9
commit aa57929d1e

Veure arxiu

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