view hgext/fastannotate/error.py @ 51147:4ed9efb25bc7 stable

phabricator: stringify the argument to `getattr()` This fixes a "TypeError: getattr(): attribute name must be string" crash and subsequent test spew. This likely broke in 18c8c18993f0 and was missed in CI because `pytest-vcr` is missing.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 01 Dec 2023 23:58:12 -0500
parents 6000f5b25c9b
children f4733654f144
line wrap: on
line source

# Copyright 2016-present Facebook. All Rights Reserved.
#
# error: errors used in fastannotate
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.


class CorruptedFileError(Exception):
    pass


class CannotReuseError(Exception):
    """cannot reuse or update the cache incrementally"""