parameters: (logical_line, noqa)
docstring: r"""When catching exceptions, mention specific exceptions whenever possible.
  
      Okay: except Exception:
      Okay: except BaseException:
      E722: except:
docstring_summary: r"""When catching exceptions, mention specific exceptions whenever possible.
docstring_tokens: r When catching exceptions mention specific exceptions whenever possible .
function: def bare_except(logical_line, noqa):
      r"""When catching exceptions, mention specific exceptions whenever possible.
  
      Okay: except Exception:
      Okay: except BaseException:
      E722: except:
      """
      if noqa:
          return
  
      regex = re.compile(r"except\s*:")
      match = regex.match(logical_line)
      if match:
          yield match.start(), "E722 do not use bare except'"
function_tokens: def bare_except ( logical_line , noqa ) : if noqa : return regex = re . compile ( r"except\s*:" ) match = regex . match ( logical_line ) if match : yield match . start ( ) , "E722 do not use bare except'"