Skip to content

Commit

Permalink
try reconnecting after connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmudhera committed Aug 31, 2022
1 parent 290a545 commit eda032d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/get_reference_genomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ def main():
print('Problem downloading genome ' + current_directory_name + ' due to a closed onnection, skipping this.')
cmd = 'rm -rf ' + path+'/'+current_directory_name
subprocess.call(cmd.split(' '))

helper.is_connected = False
while not helper.is_connected:
helper.connect()
helper.return_to_original_direct()
continue
total_downloaded += 1
Expand Down

0 comments on commit eda032d

Please sign in to comment.