Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
mutators partial_opts reference bug (#4730)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerp authored Aug 9, 2022
1 parent ae53361 commit 85c842c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parlai/core/teachers.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def add_cmdline_args(
default=None,
help='Apply one or more mutators to the data.',
)
mutators = Mutator.load_mutator_types(partial_opt.get('mutators'))
mutators = Mutator.load_mutator_types(
partial_opt.get('mutators') if partial_opt else None
)
for m in mutators:
m.add_cmdline_args(parser, partial_opt)
return parser
Expand Down

0 comments on commit 85c842c

Please sign in to comment.