diff --git a/modules/io/tests/test_io_pdb.cc b/modules/io/tests/test_io_pdb.cc index 19a1aae76e6dac82e555d6d4589973e5bef9a176..e890a5b6c7c197e2bf9800ab9b3179cdf4a17ea9 100644 --- a/modules/io/tests/test_io_pdb.cc +++ b/modules/io/tests/test_io_pdb.cc @@ -455,10 +455,8 @@ BOOST_AUTO_TEST_CASE(seqres_import) { SetPrefixPath(getenv("OST_ROOT")); String lib_path=GetSharedDataPath()+"/compounds.chemlib"; - conop::CompoundLibPtr compound_lib; - try { - compound_lib=conop::CompoundLib::Load(lib_path); - } catch(...) { + conop::CompoundLibPtr compound_lib=conop::CompoundLib::Load(lib_path); + if (!compound_lib) { std::cout << "WARNING: skipping SEQRES import unit test. " << "Rule-based builder is required" << std::endl; return;