pyspark try catch example