Skip to content

Commit

Permalink
top-level plot collections: skip empty dict
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jan 12, 2024
1 parent d711ecd commit cfeb6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/repo/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def _collect_pipeline_files(repo, targets: List[str], props, onerror=None):
for elem in plots_def:
if isinstance(elem, str):
dvcfile_defs_dict[elem] = None
else:
elif elem:
k, v = next(iter(elem.items()))
dvcfile_defs_dict[k] = v

Expand Down

0 comments on commit cfeb6bc

Please sign in to comment.