diff --git a/src/utils/Filesystem.hpp b/src/utils/Filesystem.hpp
index 63af52b2e432f1baf55d2cbfd895485a408f7e10..0f74342138ef95bf734b56658bcac34a9f782602 100644
--- a/src/utils/Filesystem.hpp
+++ b/src/utils/Filesystem.hpp
@@ -14,9 +14,11 @@ createDirectoryIfNeeded(const std::string& filename)
     try {
       std::filesystem::create_directories(path);
     }
+    // LCOV_EXCL_START
     catch (std::filesystem::filesystem_error& e) {
       throw NormalError(e.what());
     }
+    // LCOV_EXCL_STOP
   }
 }