PetterKraabol / Twitch-Python

Object-oriented Twitch API for Python developers
https://pypi.org/project/twitch-python
MIT License
214 stars 37 forks source link

Authentication error handling #49

Closed RduMarais closed 1 year ago

RduMarais commented 1 year ago

As several identified in the "issues" section, it would be nice to have some kind of error handling in order to catch errors and define authentication flow, oauth token renewal, etc.

This fix is based on the proposition by @HoodyH in https://github.com/PetterKraabol/Twitch-Python/issues/32#issue-812267731

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

RduMarais commented 1 year ago

This fix does not handle properly the exception import, I will propose another fix with utils in 'twitch' module