def METHOD_NAME(self):
    """Override stop to check whether any errors we consider to be errors
    were reported.
    This is a hack, but it makes flake8 behave the desired way.
    """
    if not self.error_seen:
        sys.exit(0)