initialchecks werent being bypassed because of the wrong exception being caught. fixed (#623)

This commit is contained in:
Dhanya Thattil 2023-01-19 10:43:27 +01:00 committed by GitHub
parent d77b353481
commit d19f6a3d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {