Skip to content

Commit

Permalink
Prevent calling fatal on query for non-existing CCDB
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Jun 18, 2024
1 parent 93a3d19 commit 13e3d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/ITSMFT/ITS/workflow/src/DCSParserSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void ITSDCSParser::pushToCCDB(ProcessingContext& pc)
auto& cdbman = o2::ccdb::BasicCCDBManager::instance();
cdbman.setURL(mCcdbUrlRct);
cdbman.setFatalWhenNull(false);
auto ts = o2::ccdb::BasicCCDBManager::instance().getRunDuration(mRunNumber);
auto ts = o2::ccdb::BasicCCDBManager::instance().getRunDuration(mRunNumber, false);
if (ts.first < 0 || ts.second < 0) {
LOGP(error, "Failed to retrieve headers from CCDB with run number {}, << this->mRunNumber, will default to using the current time for timestamp information", mRunNumber);
tstart = o2::ccdb::getCurrentTimestamp();
Expand Down

0 comments on commit 13e3d51

Please sign in to comment.