From cd690bf468568466ee9f57e11a255cfc06064d1a Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Thu, 2 Jan 2025 11:19:28 -0800 Subject: [PATCH] Handle empty list of repositories --- modbase_pdb_to_cif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modbase_pdb_to_cif.py b/modbase_pdb_to_cif.py index 497b012..0ad4581 100755 --- a/modbase_pdb_to_cif.py +++ b/modbase_pdb_to_cif.py @@ -126,7 +126,7 @@ def __call__(self, asym_id, entity_id, seq_id, pdb_seq_num, pdb_ins_code, class Repository: """Point to directory/ies containing a mirror of PDB in mmCIF format""" def __init__(self, topdirs): - self.topdirs = topdirs + self.topdirs = topdirs or [] def open_mmcif(self, pdb_code): """Given a PDB code, return a file handle to the corresponding mmCIF"""