Обработка исключений

# any method can throw an error
def method_with_exception():
    raise Exception("test exception")


method_with_exception()  # <-Error