title: Ignore exceptions thrown and caught inside a library
body: <p>The Python standard library and other libraries I use (e.g. PyQt) sometimes use exceptions for non-error conditions. Look at the following except of the function <code>os.get_exec_path()</code>. It uses multiple <code>try</code> statements to catch exceptions that are thrown while trying to find some environment data.</p>
  
  <pre><code>try:
      path_list = env.get('PATH')
  except TypeError:
      path_list = None
  
  if supports_bytes_environ:
      try:
          path_listb = env[b'PATH']
      except (KeyError, TypeError):
          pass
      else:
          if path_list is not None:
              raise ValueError(
                  "env cannot contain 'PATH' and b'PATH' keys")
          path_list = path_listb
  
      if path_list is not None and isinstance(path_list, bytes):
          path_list = fsdecode(path_list)
  </code></pre>
  
  <p>These exceptions do not signify an error and are thrown under normal conditions. When using exception breakpoints for one of these exceptions, the debugger will also break in these library functions.</p>
  
  <p>Is there a way in PyCharm or in Python in general to have the debugger not break on exceptions that are thrown and caught inside a library without any involvement of my code? </p>