File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -644,13 +644,17 @@ void SpaceGroup::InitSpaceGroup(const string &spgId)
644
644
645
645
mExtension =' \0 ' ; // this->GetCCTbxSpg().type().extension();
646
646
}
647
- catch (exception & ex)
647
+ catch (cctbx::error ex)
648
648
{
649
649
(*fpObjCrystInformUser)(" Error initializing spacegroup (Incorrect Hall symbol ?):" +spgId);
650
- this ->InitSpaceGroup (mId );
651
- (*fpObjCrystInformUser)(" Reverting to spacegroup symbol:" +mId );
650
+ if (mId != spgId)
651
+ {
652
+ (*fpObjCrystInformUser)(" Reverting to spacegroup symbol:" +mId );
653
+ this ->InitSpaceGroup (mId );
654
+ }
652
655
VFN_DEBUG_EXIT (" SpaceGroup::InitSpaceGroup() could not interpret spacegroup:" <<spgId<<" :" <<ex.what (),8 )
653
- return ;
656
+ string emsg = " Space group symbol '" + spgId + " ' not recognized" ;
657
+ throw ObjCrystException (emsg);
654
658
}
655
659
656
660
mExtension =this ->GetCCTbxSpg ().match_tabulated_settings ().extension ();
You can’t perform that action at this time.
0 commit comments