title: Handling exception in main function interface
body: <p>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.</p>
  <p>Is there any way to continue to proceed with the next element when the current element in the list raises an exception?</p>
  <p>Let's say func3 raise an exception at list_[0], then main will continue with list_[1] from func1, and then func2,... –</p>
  <p>Some pseudo-code:</p>
  <pre><code>def main(list_) -&gt; None:   
      func1(list_)
      func2(list_)
      func3(list_)
  
  </code></pre>
  <p>Expected behavior:</p>
  <pre><code>def main(list_) -&gt; None:   
      try:
          func1(list_)
          func2(list_)
          func3(list_)
      except:
          continue with the next element
          print(Element i raise Exception..., Skipping i...)
  </code></pre>