Chore: enable flake8-logging-format G101/G202 ruff rules

G202 (redundant exc_info=True passed to logger.exception, which
already includes the traceback) had 2 hits in documents/views.py,
fixed manually since ruff has no autofix for it. G101 (hardcoded
password string) had zero hits.
This commit is contained in:
stumpylog
2026-08-27 10:11:50 -07:00
parent 6f843bda8d
commit 65b6db7b63
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -1570,7 +1570,6 @@ class DocumentViewSet(
"document %s: %s",
doc.pk,
exc,
exc_info=True,
)
raise ValidationError(
{"ai": [_("Invalid AI configuration.")]},
@@ -1581,7 +1580,6 @@ class DocumentViewSet(
"document %s: %s",
doc.pk,
exc,
exc_info=True,
)
return Response(
{"ai": [_("AI backend request timed out.")]},