Skip to content

Commit

Permalink
replace HTTPError with more robust Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Oct 30, 2023
1 parent e94ffaa commit b4a4783
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nplinker/pairedomics/podp_antismash_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit b4a4783

Please sign in to comment.