Skip to content

Commit c591bbe

Browse files
committed
remove the useless try catch
1 parent dec5587 commit c591bbe

File tree

4 files changed

+4
-20
lines changed

4 files changed

+4
-20
lines changed

Framework/src/AggregatorRunner.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,7 @@ void AggregatorRunner::start(ServiceRegistryRef services)
380380
// register ourselves to the BK
381381
if (!gSystem->Getenv("O2_QC_DONT_REGISTER_IN_BK")) { // Set this variable to disable the registration
382382
ILOG(Debug, Devel) << "Registering aggregator to BookKeeping" << ENDM;
383-
try {
384-
Bookkeeping::getInstance().registerProcess(mActivity->mId, mDeviceName, AggregatorRunner::getDetectorName(mAggregators), bkp::DplProcessType::QC_AGGREGATOR, "");
385-
} catch (std::runtime_error& error) {
386-
ILOG(Warning, Devel) << "Failed registration to the BookKeeping: " << error.what() << ENDM;
387-
}
383+
Bookkeeping::getInstance().registerProcess(mActivity->mId, mDeviceName, AggregatorRunner::getDetectorName(mAggregators), bkp::DplProcessType::QC_AGGREGATOR, "");
388384
}
389385
}
390386

Framework/src/CheckRunner.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,11 +457,7 @@ void CheckRunner::start(ServiceRegistryRef services)
457457
// register ourselves to the BK
458458
if (!gSystem->Getenv("O2_QC_DONT_REGISTER_IN_BK")) { // Set this variable to disable the registration
459459
ILOG(Debug, Devel) << "Registering checkRunner to BookKeeping" << ENDM;
460-
try {
461-
Bookkeeping::getInstance().registerProcess(mActivity->mId, mDeviceName, mDetectorName, bkp::DplProcessType::QC_CHECKER, "");
462-
} catch (std::runtime_error& error) {
463-
ILOG(Warning, Devel) << "Failed registration to the BookKeeping: " << error.what() << ENDM;
464-
}
460+
Bookkeeping::getInstance().registerProcess(mActivity->mId, mDeviceName, mDetectorName, bkp::DplProcessType::QC_CHECKER, "");
465461
}
466462
}
467463

Framework/src/PostProcessingRunner.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,7 @@ void PostProcessingRunner::start(framework::ServiceRegistryRef dplServices)
189189
// register ourselves to the BK
190190
if (!gSystem->Getenv("O2_QC_DONT_REGISTER_IN_BK")) { // Set this variable to disable the registration
191191
ILOG(Debug, Devel) << "Registering pp task to BookKeeping" << ENDM;
192-
try {
193-
Bookkeeping::getInstance().registerProcess(mActivity.mId, mRunnerConfig.taskName, mRunnerConfig.detectorName, bkp::DplProcessType::QC_POSTPROCESSING, "");
194-
} catch (std::runtime_error& error) {
195-
ILOG(Warning, Devel) << "Failed registration to the BookKeeping: " << error.what() << ENDM;
196-
}
192+
Bookkeeping::getInstance().registerProcess(mActivity.mId, mRunnerConfig.taskName, mRunnerConfig.detectorName, bkp::DplProcessType::QC_POSTPROCESSING, "");
197193
}
198194

199195
if (mTaskState == TaskState::Created || mTaskState == TaskState::Finished) {

Framework/src/TaskRunner.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,7 @@ void TaskRunner::registerToBookkeeping()
437437
if (!gSystem->Getenv("O2_QC_DONT_REGISTER_IN_BK")) { // Set this variable to disable the registration
438438
// register ourselves to the BK at the first cycle
439439
ILOG(Debug, Devel) << "Registering taskRunner to BookKeeping" << ENDM;
440-
try {
441-
Bookkeeping::getInstance().registerProcess(mActivity.mId, mTaskConfig.taskName, mTaskConfig.detectorName, bkp::DplProcessType::QC_TASK, "");
442-
} catch (std::runtime_error& error) {
443-
ILOG(Warning, Devel) << "Failed registration to the BookKeeping: " << error.what() << ENDM;
444-
}
440+
Bookkeeping::getInstance().registerProcess(mActivity.mId, mTaskConfig.taskName, mTaskConfig.detectorName, bkp::DplProcessType::QC_TASK, "");
445441
}
446442
}
447443

0 commit comments

Comments
 (0)