Skip to content

Commit

Permalink
Fix pre mode check attribute-context
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarti committed Feb 7, 2024
1 parent 29ea3a4 commit 04153a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inseq/commands/attribute_context/attribute_context_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def __post_init__(self):
if (
self.handle_output_context_strategy == HandleOutputContextSetting.PRE.value
and not self.output_context_text
and "{context}" in self.output_template
):
raise ValueError(
"If --handle_output_context_strategy='pre' and {context} is used in --output_template, --output_context_text"
Expand Down

0 comments on commit 04153a9

Please sign in to comment.