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 8, 2024
1 parent 6a07c43 commit 6f1dc43
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 6f1dc43

Please sign in to comment.