From 95acde554d0258ef045cdd6395a3879a756078d4 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Wed, 2 Oct 2024 08:49:24 +0200 Subject: [PATCH] cleaner assignment --- src/banks/extensions/chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/banks/extensions/chat.py b/src/banks/extensions/chat.py index 8747b77..fcc1c1f 100644 --- a/src/banks/extensions/chat.py +++ b/src/banks/extensions/chat.py @@ -49,7 +49,8 @@ def parse(self, parser): raise TemplateSyntaxError(error_msg, lineno) if attr_value.value not in SUPPORTED_TYPES: - msg = f"Unknown role type '{attr_value}', use one of ({",".join(SUPPORTED_TYPES)})" + types = ",".join(SUPPORTED_TYPES) + msg = f"Unknown role type '{attr_value}', use one of ({types})" raise TemplateSyntaxError(msg, lineno) # Pass the role name to the CallBlock node