fishbigger / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
566 stars 138 forks source link

Upgrade exception handling #116

Open OliverUrsell opened 1 year ago

OliverUrsell commented 1 year ago

I've created a new exception (TapoError) so that try-catch statements can catch errors without having to catch the generic "Exception" type.

I've also included error handling where I perceived it may have been missing, please comment if I have raised an exception where there should not be one.

Please let me know if there are any changes that need to be made that are blocking this from being merged.