Skip to content
/ dvc Public
forked from iterative/dvc

Commit

Permalink
exp init: don't try tracking params if they are skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Nov 3, 2021
1 parent 6e0dfb9 commit dd0d4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dvc/repo/experiments/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def init(
with _disable_logging(), scm.track_file_changes(autostage=True):
stage.dump(update_lock=False)
stage.ignore_outs()
scm.track_file(params)
if params:
scm.track_file(params)
else:
raise DvcException("Aborting ...")
return stage

0 comments on commit dd0d4f5

Please sign in to comment.