diff --git a/parlai/core/teachers.py b/parlai/core/teachers.py index 86cdd3e99a3..57b154578fe 100644 --- a/parlai/core/teachers.py +++ b/parlai/core/teachers.py @@ -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