supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
271 stars 50 forks source link

Added IOError for e.g. unauthorized error #72

Closed philipp2310 closed 2 years ago

philipp2310 commented 2 years ago

Some errors are not contained inside the payload, but are directly in the response (e.g. '401 insufficient permissions (not registered)') These errors pop up in response_valid as "Unknown Error" and the real reason is lost.

supersaiyanmode commented 2 years ago

Thanks so much for your PR. I have merged it and uploaded v0.8.8 to PyPI :)