Skip to content

Commit

Permalink
Need to load the config before we can check the project exist privately
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Dec 11, 2023
1 parent e778bee commit ad3fb6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/broker_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def ENA_Project(project):


def main():
# Load the config_file from default location
load_config()
argparse = ArgumentParser(description='Broker validated ELOAD to BioSamples and ENA')
argparse.add_argument('--eload', required=True, type=int, help='The ELOAD number for this submission')
argparse.add_argument('--debug', action='store_true', default=False,
Expand All @@ -61,8 +63,6 @@ def main():
if args.debug:
log_cfg.set_log_level(logging.DEBUG)

# Load the config_file from default location
load_config()
# Optionally Set the valid VCF and metadata file
with EloadBrokering(args.eload, args.vcf_files, args.metadata_file) as brokering:
brokering.upgrade_config_if_needed()
Expand Down

0 comments on commit ad3fb6e

Please sign in to comment.