#17,remove the if statement for handling result['data'],put try/except block for handling instead