Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh1994 committed Oct 21, 2024
1 parent 79ef2bd commit e568ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazyllm/components/formatter/formatterbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def __init__(self, formatter: Optional[str] = None):
self._return_package = False
self._formatter = formatter

assert '*' not in self._formatter, '`*` can only be used before `[` in the beginning'
if self._formatter:
assert '*' not in self._formatter, '`*` can only be used before `[` in the beginning'
self._formatter = self._formatter.strip().replace('{', '[{').replace('}', '}]')
self._parse_formatter()
else:
Expand Down

0 comments on commit e568ddf

Please sign in to comment.