From 0d8582459d1fa42c6d0e6e5a4ec58f97a8e3c4d8 Mon Sep 17 00:00:00 2001 From: James Krieger Date: Fri, 8 Nov 2024 17:38:04 +0000 Subject: [PATCH] fix the url fix --- prody/proteins/wwpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prody/proteins/wwpdb.py b/prody/proteins/wwpdb.py index d2c883f52..ef520c8dc 100644 --- a/prody/proteins/wwpdb.py +++ b/prody/proteins/wwpdb.py @@ -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: