Skip to content

Commit e7c354a

Browse files
authored
Merge pull request #44 from pavoljuhas/fix-sg-name-check
Avoid uncaught exception when checking SG names
2 parents 5ae1776 + 82711be commit e7c354a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ObjCryst/ObjCryst/SpaceGroup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ void SpaceGroup::InitSpaceGroup(const string &spgId)
588588
delete mpCCTbxSpaceGroup;
589589
mpCCTbxSpaceGroup = nsg;
590590
}
591-
catch(cctbx::error ex1)
591+
catch(exception ex1)
592592
{
593593
try
594594
{
@@ -599,7 +599,7 @@ void SpaceGroup::InitSpaceGroup(const string &spgId)
599599
delete mpCCTbxSpaceGroup;
600600
mpCCTbxSpaceGroup = nsg;
601601
}
602-
catch(cctbx::error ex2)
602+
catch(exception ex2)
603603
{
604604
(*fpObjCrystInformUser)("Could not interpret Spacegroup Symbol:"+spgId);
605605
string emsg = "Space group symbol '" + spgId + "' not recognized";
@@ -644,7 +644,7 @@ void SpaceGroup::InitSpaceGroup(const string &spgId)
644644

645645
mExtension='\0'; //this->GetCCTbxSpg().type().extension();
646646
}
647-
catch(cctbx::error ex)
647+
catch(exception ex)
648648
{
649649
(*fpObjCrystInformUser)("Error initializing spacegroup (Incorrect Hall symbol ?):"+spgId);
650650
if (mId != spgId)

0 commit comments

Comments
 (0)