From ad3fb6e0fa2a4083d3e679670262ff0ccccd9d83 Mon Sep 17 00:00:00 2001 From: tcezard Date: Mon, 11 Dec 2023 16:04:43 +0000 Subject: [PATCH] Need to load the config before we can check the project exist privately --- bin/broker_submission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/broker_submission.py b/bin/broker_submission.py index 028b102..c1c37f3 100755 --- a/bin/broker_submission.py +++ b/bin/broker_submission.py @@ -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, @@ -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()