title: How can I know which exceptions might be thrown from a method call?
body: <p>Is there a way knowing (at coding time) which exceptions to expect when executing python code?</p>
  <p>I end up catching the base Exception class 90% of the time since I don't know which exception type might be thrown (reading the documentation doesn't always help, since many times an exception can be propagated from the deep. And many times the documentation is not updated or correct).</p>
  <p>Is there some kind of tool to check this (like by reading the Python code and libs)?</p>