plots: avoid printing anything on --json output (#9144)

This commit is contained in:
skshetry
2023-03-09 16:10:46 +05:45
committed by GitHub
parent 8589aa4001
commit 2b889baa5e
+1 -1
View File
@@ -112,7 +112,7 @@ class CmdPlots(CmdBase):
props=self._props(),
)
if not plots_data:
if not plots_data and not self.args.json:
ui.error_write(
"No plots were loaded, visualization file will not be created."
)