Skip to content

Commit

Permalink
fix the url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 10, 2024
1 parent 9b9b97d commit 0d85824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prody/proteins/wwpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def fetchPDBviaHTTP(*pdb, **kwargs):
continue
try:
url = getURL(pdb)
if kwargs['format'] != 'pdb':
if kwargs.get('format', 'pdb') != 'pdb':
url = url.replace('.pdb', extension)
handle = openURL(url)
except Exception as err:
Expand Down

0 comments on commit 0d85824

Please sign in to comment.