From 6764514b45febc6a36e14cf1e81b8a66739551fc Mon Sep 17 00:00:00 2001 From: acpaquette Date: Mon, 13 Nov 2023 16:01:48 -0700 Subject: [PATCH] Mission Specific PCK loading Fix (#5335) * Allow the kernel db loading to fall back on base * Fixed small comment typo --- isis/src/system/objs/KernelDb/KernelDb.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/isis/src/system/objs/KernelDb/KernelDb.cpp b/isis/src/system/objs/KernelDb/KernelDb.cpp index 8e7c95c36c..6e50743860 100644 --- a/isis/src/system/objs/KernelDb/KernelDb.cpp +++ b/isis/src/system/objs/KernelDb/KernelDb.cpp @@ -740,11 +740,12 @@ namespace Isis { // Load the leapsecond DB loadKernelDbFiles(dataDir, baseDir + "/kernels/lsk", lab); // Load the target attitude shape DB - FileName tasDbPath(missionDir + "/kernels/pck"); - if (tasDbPath.fileExists()) { + // Try to get mission specific pck data, if that + // fails, fallback to the base pck data + try { loadKernelDbFiles(dataDir, missionDir + "/kernels/pck", lab); } - else { + catch (IException &e) { loadKernelDbFiles(dataDir, baseDir + "/kernels/pck", lab); } // Load the target position DB