Skip to content

Commit

Permalink
cleaner assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Oct 2, 2024
1 parent 9b077d2 commit 95acde5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/banks/extensions/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95acde5

Please sign in to comment.