Skip to content
Snippets Groups Projects
Verified Commit 52adb09c authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: fail early and clearly with quote chain names

parent 323fe2b6
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment