# любой метод может выбросить ошибкуdef method_with_exception(): raise Exception("test exception")method_with_exception() # <-Error