From 6da7749233d855fa8c82d3d1a292d78925d528bb Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 12 Nov 2021 10:17:35 +0100 Subject: [PATCH] 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. --- src/App/Application.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index b112ee32b3..ad5b6544e3 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -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()) {