Merge 26baa3b1b1
into 0f753e621a
This commit is contained in:
commit
ed0fbb43ac
|
@ -1196,7 +1196,7 @@ class Mastodon:
|
|||
raise MastodonAPIError('Endpoint not found.')
|
||||
|
||||
if isinstance(response, dict) and 'error' in response:
|
||||
raise MastodonAPIError("Mastodon API returned error: " + str(response['error']))
|
||||
raise MastodonAPIError("Mastodon API returned error: " + response['error'].encode('utf-8').strip())
|
||||
else:
|
||||
raise MastodonAPIError('Endpoint not found.')
|
||||
|
||||
|
|
Loading…
Referencia en una nova incidència