From d19f6a3d0d3672141a368a92c03dfb16b81a922e Mon Sep 17 00:00:00 2001 From: Dhanya Thattil <33750417+thattil@users.noreply.github.com> Date: Thu, 19 Jan 2023 10:43:27 +0100 Subject: [PATCH] initialchecks werent being bypassed because of the wrong exception being caught. fixed (#623) --- slsDetectorSoftware/src/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/Module.cpp b/slsDetectorSoftware/src/Module.cpp index 5772e2672..1bb47c085 100644 --- a/slsDetectorSoftware/src/Module.cpp +++ b/slsDetectorSoftware/src/Module.cpp @@ -76,7 +76,7 @@ void Module::setHostname(const std::string &hostname, initialDetectorServerChecks(); checkDetectorVersionCompatibility(); LOG(logINFO) << "Module Version Compatibility - Success"; - } catch (const DetectorError &e) { + } catch (const RuntimeError &e) { if (!initialChecks) { LOG(logWARNING) << "Bypassing Initial Checks at your own risk!"; } else {