[Python]Error information is not correct