Skip to content

Commit

Permalink
403 is similar to 404 here
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsobolev committed Mar 8, 2025
1 parent 7194082 commit baccc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iotbx/pdb/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def fetch(id, entity='model_pdb', mirror="rcsb", emdb_number=None, link_template
try :
data = libtbx.utils.urlopen(url)
except HTTPError as e :
if e.getcode() == 404 :
if e.getcode() == 404 or e.getcode() == 403 :
raise RuntimeError("Couldn't download %s for %s at %s." % (entity, id, url))
else :
raise
Expand Down

0 comments on commit baccc1d

Please sign in to comment.