From 155153581fccdf092e900f5d16d5134ff516f32d Mon Sep 17 00:00:00 2001 From: lingyuzeng Date: Thu, 1 Feb 2024 15:30:01 +0800 Subject: [PATCH] update --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index c0ba565..9857eda 100644 --- a/test.py +++ b/test.py @@ -264,9 +264,9 @@ import requests for i in multimer_pdbid: url = f"https://www.rcsb.org/fasta/entry/{i.upper()}" response = requests.get(url) - output_file = Path('multi') / f"{i}.fasta" if output_file.exists(): continue + output_file = Path('multi') / f"{i}.fasta" if response.status_code == 200: with open(output_file, 'w') as file: file.write(response.text)