python try catch continue on error