Skip to content

Commit 6a0a696

Browse files
committed
multiple years check
1 parent 9a9459f commit 6a0a696

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/boostedhh/submit_utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ def check_branch(
133133
def init_args(args):
134134
# check that branch exists
135135
check_branch(args.analysis, args.git_branch, args.git_user, args.allow_diff_local_repo)
136+
137+
if isinstance(args.year, list):
138+
if len(args.year) == 1:
139+
args.year = args.year[0]
140+
else:
141+
raise ValueError("Submitting multiple years without --yaml option is not supported yet")
142+
136143
username = os.environ["USER"]
137144

138145
if args.site == "lpc":

0 commit comments

Comments
 (0)