App: do not raise an exception if application data directory doesn't exist because this breaks the CI tests

Instead try to create the directories and throw an exception if this fails.
This commit is contained in:
wmayer
2021-11-12 10:17:35 +01:00
parent b2475b228a
commit 6da7749233

View File

@@ -2958,10 +2958,10 @@ boost::filesystem::path findPath(const QString& stdHome, const QString& customHo
boost::filesystem::path appData(stringToPath(dataPath.toStdString()));
if (!boost::filesystem::exists(appData)) {
// This should never ever happen
throw Base::FileSystemError("Application data directory " + appData.string() + " does not exist!");
}
//if (!boost::filesystem::exists(appData)) {
// // This should never ever happen
// throw Base::FileSystemError("Application data directory " + appData.string() + " does not exist!");
//}
// If a custom user home path is given then don't modify it
if (customHome.isEmpty()) {