diff --git a/modules/mol/alg/pymod/scoring.py b/modules/mol/alg/pymod/scoring.py index 42acf8554120d20cce4b7288fdca821dacd04c42..ced6bf225a15c1ce172a860f03ed9242ab850607 100644 --- a/modules/mol/alg/pymod/scoring.py +++ b/modules/mol/alg/pymod/scoring.py @@ -179,11 +179,15 @@ class Scorer: for ch in self._model.chains: if ch.GetName().strip() == "": raise RuntimeError("Model chains must have valid chain names") + if ch.GetName().strip() == "'" or ch.GetName().strip() == '"': + raise RuntimeError("Model chains cannot be named with quote signs (' or \"\")") # catch targets which have empty chain names for ch in self._target.chains: if ch.GetName().strip() == "": raise RuntimeError("Target chains must have valid chain names") + if ch.GetName().strip() == "'" or ch.GetName().strip() == '"': + raise RuntimeError("Target chains cannot be named with quote signs (' or \"\")") if resnum_alignments: # In case of resnum_alignments, we have some requirements on