From de67ffc6807277eaefcbab5aabb75cb69594ab0f Mon Sep 17 00:00:00 2001 From: James Krieger Date: Thu, 12 Oct 2023 21:30:18 +0200 Subject: [PATCH] allow forgotten None case --- prody/proteins/ciffile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prody/proteins/ciffile.py b/prody/proteins/ciffile.py index c9caa6703..622a9c0ec 100644 --- a/prody/proteins/ciffile.py +++ b/prody/proteins/ciffile.py @@ -138,7 +138,7 @@ def parseMMCIF(pdb, **kwargs): # e.g. multiple biomol assemblies [r.setChids(r.getSegnames()) for r in result[0] if isinstance(r, AtomGroup)] - else: + elif result is not None: raise TypeError('result from parseMMCIFStream should be a tuple, AtomGroup or list') return result