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 Jan 8, 2024
1 parent ef508a3 commit 48da89b
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 48da89b

Please sign in to comment.