Skip to content

Commit 754d7e7

Browse files
committed
Fix the increasing entries (#1450)
* Fix the increasing entries to avoid issues when the parameter is not specified * Fix the increasing entries to avoid issues when the parameter is not specified * format
1 parent ac3936b commit 754d7e7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Modules/Common/src/IncreasingEntries.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <TList.h>
2525

2626
#include <DataFormatsQualityControl/FlagReasons.h>
27+
#include <Common/Exceptions.h>
2728

2829
using namespace std;
2930
using namespace o2::quality_control;
@@ -33,8 +34,11 @@ namespace o2::quality_control_modules::common
3334

3435
void IncreasingEntries::configure()
3536
{
36-
mMustIncrease = parseBoolParam(mCustomParameters, "mustIncrease");
37-
37+
try {
38+
mMustIncrease = parseBoolParam(mCustomParameters, "mustIncrease");
39+
} catch (AliceO2::Common::ObjectNotFoundError& exc) {
40+
mMustIncrease = true; // if not there, default behaviour
41+
}
3842
ILOG(Debug, Support) << "mustIncrease: " << mMustIncrease << ENDM;
3943

4044
if (mMustIncrease) {

0 commit comments

Comments
 (0)