diff --git a/Framework/DataHandling/inc/MantidDataHandling/LoadEventNexus.h b/Framework/DataHandling/inc/MantidDataHandling/LoadEventNexus.h index 6c8dbfbddb6f832481c73c8464860ca17c766342..d6a6e39faed40fc6fa096044648d2cab0eff8bb8 100644 --- a/Framework/DataHandling/inc/MantidDataHandling/LoadEventNexus.h +++ b/Framework/DataHandling/inc/MantidDataHandling/LoadEventNexus.h @@ -636,7 +636,7 @@ void LoadEventNexus::loadEntryMetadata(const std::string &nexusfilename, T WS, // get the sample name - nested try/catch to leave the handle in an // appropriate state - try { + if (exists(file, "sample")) { file.openGroup("sample", "NXsample"); try { if (exists(file, "name")) { @@ -666,8 +666,6 @@ void LoadEventNexus::loadEntryMetadata(const std::string &nexusfilename, T WS, // let it drop on floor if an exception occurs while reading sample } file.closeGroup(); - } catch (::NeXus::Exception &) { - // If an exception occurs while opening the group "sample" } // get the duration