tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
117 stars 47 forks source link

This line will never execute #33

Closed umonaca closed 2 years ago

umonaca commented 2 years ago

https://github.com/tuya/tuya-iot-python-sdk/blob/83f1e999d75ef87b2170ffbbb239ca8651dab0c3/tuya_iot/openapi.py#L274

Unless your system has a 2xx status code for invalid token, this will never be reached because there is another return None statement above.

umonaca commented 2 years ago

Well, I have double checked that your backend system do respond HTTP 200 OK even if the response shows error. Your company's system is weird.