tuya/tuya-iot-python-sdk

This line will never execute

umonaca opened this issue · 1 comments

if result.get("code", -1) == TUYA_ERROR_CODE_TOKEN_INVALID:

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

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.