From c2faaee0f54dbb8abdbde60ee2f89b0d124d2d99 Mon Sep 17 00:00:00 2001 From: lorenzo132 Date: Sat, 1 Aug 2026 14:38:37 +0200 Subject: [PATCH 1/3] Fix freply crash on unmatched braces --- core/models.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/core/models.py b/core/models.py index c7d1e79599..5265a84ab5 100644 --- a/core/models.py +++ b/core/models.py @@ -359,6 +359,31 @@ class _Default: class SafeFormatter(Formatter): + _FIELD_PATTERN = re.compile(r"(? Date: Sat, 1 Aug 2026 14:47:15 +0200 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: lorenzo132 <50767078+lorenzo132@users.noreply.github.com> --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 5265a84ab5..b380efcffc 100644 --- a/core/models.py +++ b/core/models.py @@ -364,8 +364,8 @@ class SafeFormatter(Formatter): "Single '{' encountered in format string", "Single '}' encountered in format string", "expected '}' before end of string", + "unexpected '{' in field name", } - def format(self, format_string, /, *args, **kwargs): try: return super().format(format_string, *args, **kwargs) From 81d907e125f0e46b3e2f7c93b03a6c3279eecaf8 Mon Sep 17 00:00:00 2001 From: lorenzo132 Date: Sat, 1 Aug 2026 14:53:28 +0200 Subject: [PATCH 3/3] fix ci --- core/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/models.py b/core/models.py index b380efcffc..8f71c3f4ee 100644 --- a/core/models.py +++ b/core/models.py @@ -366,6 +366,7 @@ class SafeFormatter(Formatter): "expected '}' before end of string", "unexpected '{' in field name", } + def format(self, format_string, /, *args, **kwargs): try: return super().format(format_string, *args, **kwargs)