Skip to content
Snippets Groups Projects
Commit 79ce174f authored by Leal, Ricardo's avatar Leal, Ricardo
Browse files

Removed the double try / except

parent 99bc6cf8
No related branches found
No related tags found
No related merge requests found
...@@ -636,7 +636,7 @@ void LoadEventNexus::loadEntryMetadata(const std::string &nexusfilename, T WS, ...@@ -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 // get the sample name - nested try/catch to leave the handle in an
// appropriate state // appropriate state
try { if (exists(file, "sample")) {
file.openGroup("sample", "NXsample"); file.openGroup("sample", "NXsample");
try { try {
if (exists(file, "name")) { if (exists(file, "name")) {
...@@ -666,8 +666,6 @@ void LoadEventNexus::loadEntryMetadata(const std::string &nexusfilename, T WS, ...@@ -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 // let it drop on floor if an exception occurs while reading sample
} }
file.closeGroup(); file.closeGroup();
} catch (::NeXus::Exception &) {
// If an exception occurs while opening the group "sample"
} }
// get the duration // get the duration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment