diff --git a/src/nplinker/pairedomics/podp_antismash_downloader.py b/src/nplinker/pairedomics/podp_antismash_downloader.py index 5ba8d128..3a7dbc44 100644 --- a/src/nplinker/pairedomics/podp_antismash_downloader.py +++ b/src/nplinker/pairedomics/podp_antismash_downloader.py @@ -3,7 +3,6 @@ from pathlib import Path import re import time -from urllib.error import HTTPError from bs4 import BeautifulSoup from bs4 import NavigableString from bs4 import Tag @@ -203,7 +202,7 @@ def podp_download_and_extract_antismash_data( if output_path.exists(): Path.touch(output_path / 'completed', exist_ok=True) - except HTTPError: + except Exception: gs_obj.bgc_path = "" missing = len([gs for gs in gs_dict.values() if not gs.bgc_path])