python try catch print error line