Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
254 stars 38 forks source link

Twitch.create_poll() throws key error on 401 API error #245

Closed Teekeks closed 1 year ago

Teekeks commented 1 year ago

As discovered in #244, Twitch.create_poll does not properly handle 401 api errors.

https://dev.twitch.tv/docs/api/reference/#create-poll

Teekeks commented 1 year ago

On further inspection: 401 is handled as intended