Skip to content

Instantly share code, notes, and snippets.

# Examples of various error handling mechanisms and if-statements.
def something(x,y):
if !x:
raise "argh!"
else:
if !y:
raise "oh noes!"
else:
return "Happy"