how to return something else on error in python code example Example: throwing an exception python raise Exception("message")