how to get the data form the function in exceptipon part python code example Example: exception pyton print except Exception as e: print(e)