PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
791 stars 163 forks source link

Propagate authentication errors to end user when calling run() #345

Closed IAmTomahawkx closed 1 year ago

IAmTomahawkx commented 1 year ago

Pull request summary

Opening this as a PR in case of adverse side effects before merging. Will merge in 1-2 days after some additional testing.

Previously AuthenticationError being raised would go unhandled, because run calls create_task(connect) and ignored the output/error. This also removes a wrapping error when calling start with a bad token. This fixes #344

Checklist