I have a main function that takes a list argument and proceeds with every element in the list. It is not necessary for me to stop the program whenever one element raises an exception. The problem is that the input list is passed through different functions and it is a pain to handle exceptions for all those functions.

Is there any way to continue to proceed with the next element when the current element in the list raises an exception?

Let's say func3 raise an exception at list\_[0], then main will continue with list\_[1] from func1, and then func2,... –

Some pseudo-code:

```
def main(list_) -> None:   
    func1(list_)
    func2(list_)
    func3(list_)

```

Expected behavior:

```
def main(list_) -> None:   
    try:
        func1(list_)
        func2(list_)
        func3(list_)
    except:
        continue with the next element
        print(Element i raise Exception..., Skipping i...)

```