From 37c8ef34068885ff05ea851dbf91a5d4a1b9e975 Mon Sep 17 00:00:00 2001 From: skshetry Date: Tue, 23 Aug 2022 20:27:23 +0545 Subject: [PATCH] Update dvc/commands/plots.py --- dvc/commands/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/commands/plots.py b/dvc/commands/plots.py index b471bd229..dac23b637 100644 --- a/dvc/commands/plots.py +++ b/dvc/commands/plots.py @@ -232,7 +232,7 @@ class CmdPlotsTemplates(CmdBase): if target: for template in TEMPLATES: if target == template.DEFAULT_NAME: - ui.write(json.dumps(template.DEFAULT_CONTENT)) + ui.write_json(template.DEFAULT_CONTENT) return 0 raise InvalidArgumentError(f"Unexpected template: {target}.")