Skip to content

Commit

Permalink
Update ena_upload.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb authored Jan 13, 2022
1 parent 57229fe commit 5bcc6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ena_upload/ena_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def process_args():
parser.error(msg)

# check if data is given when adding a 'run' table
if (not args.no_data_upload and args.run) or (not args.no_data_upload and args.xlsx):
if (not args.no_data_upload and args.run and args.action not in ['release','cancel']) or (not args.no_data_upload and args.xlsx and args.action not in ['release','cancel']):
if args.data is None:
parser.error('Oops, requires data for submitting RUN object')

Expand Down

0 comments on commit 5bcc6b0

Please sign in to comment.