Skip to content

Commit

Permalink
Handle empty list of repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Jan 2, 2025
1 parent 2d1ca3b commit cd690bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modbase_pdb_to_cif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit cd690bf

Please sign in to comment.