From f156f4d0ed432853455433da8c941e988b70084f Mon Sep 17 00:00:00 2001 From: Mahmudur Date: Tue, 30 Aug 2022 19:24:37 -0400 Subject: [PATCH] testing on server --- scripts/get_reference_genomes.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/get_reference_genomes.py b/scripts/get_reference_genomes.py index 327ceed..4fd2abc 100755 --- a/scripts/get_reference_genomes.py +++ b/scripts/get_reference_genomes.py @@ -201,8 +201,14 @@ def main(): break # download selected genome and gbff - helper.download_FNA_file(path, current_directory_name) - helper.download_GBFF_file(path, current_directory_name) + try: + helper.download_FNA_file(path, current_directory_name) + helper.download_GBFF_file(path, current_directory_name) + except EOFError: + print(path, current_directory_name) + print('Exiting for now') + exit(-1) + continue total_downloaded += 1 helper.return_to_original_direct()