diff --git a/manage.py b/manage.py index 5a00b5ea..ebc6aa72 100755 --- a/manage.py +++ b/manage.py @@ -925,7 +925,7 @@ def _link(name, fields, text): match len(occurrences): case 0: - raise ValueError(f"Field {name} not in schema") # noqa: TRY003 + raise ValueError(f"Field {name} not in schema") case 1: choice = 0 # Resolve ambiguous field names, like `title`. diff --git a/pyproject.toml b/pyproject.toml index 8a33f837..7fce6300 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,6 +17,7 @@ ignore = [ "C901", "PLR091", # complexity preferences "D1", # docstrings "PTH", # pathlib + "TRY003", ] [tool.ruff.lint.flake8-builtins]