Skip to content

Commit

Permalink
[fix] warn_once missing positional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
huyiwen committed Jun 9, 2024
1 parent 857cf27 commit 40e578e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilization/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def _format_instance(
formatted_instance[key] = getattr(self, key)
for key, value in formatted_instance.items():
if isinstance(value, str) and value.startswith(" "):
warn_once(logger, f"Key `{key}` has leading spaces: {pformat(value)}")(key)
warn_once(logger, f"Key `{key}` has leading spaces: {pformat(value)}", key)

if not isinstance(source, list):
if self.instruction_template.debug_info:
Expand Down

0 comments on commit 40e578e

Please sign in to comment.