Skip to content

Commit 226805b

Browse files
committed
Show sorry instead of traceback in the next line
1 parent 3833940 commit 226805b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mmtbx/geometry_restraints/torsion_restraints/reference_model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ def _make_matching_and_fill_dictionaries(self, model_h, ref_h, fn,
276276
msg = "Reference selection '%s' selected 0 atoms in %s.\n" % (ref_selection_str, fn) +\
277277
"Please check if the selection provided is correct."
278278
raise Sorry(msg)
279+
if ref_h.models_size() > 1:
280+
raise Sorry("Reference model '%s' is multi-model file, which is not supported." % fn)
279281
for chain in ref_h.only_model().chains():
280282
chain.id +="ref"
281283
combined_h.transfer_chains_from_other(ref_h)

0 commit comments

Comments
 (0)