From d2d5f80b445d46b6d640b4c936dd6a7d1e21a7b6 Mon Sep 17 00:00:00 2001 From: Maxime Dor Date: Thu, 7 Sep 2017 01:21:49 +0200 Subject: [PATCH] Don't fail if template is not found and hope for the best --- .../kamax/mxisd/config/invite/sender/EmailSenderConfig.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/groovy/io/kamax/mxisd/config/invite/sender/EmailSenderConfig.java b/src/main/groovy/io/kamax/mxisd/config/invite/sender/EmailSenderConfig.java index 886f062..80f91ad 100644 --- a/src/main/groovy/io/kamax/mxisd/config/invite/sender/EmailSenderConfig.java +++ b/src/main/groovy/io/kamax/mxisd/config/invite/sender/EmailSenderConfig.java @@ -20,7 +20,6 @@ package io.kamax.mxisd.config.invite.sender; -import io.kamax.mxisd.exception.ConfigurationException; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -122,10 +121,9 @@ public class EmailSenderConfig { log.warn("invite.sender.contentPath is empty! Will not send invites"); } else { File cp = new File(getContentPath()).getAbsoluteFile(); + log.info("Content path: {}", cp.getAbsolutePath()); if (!cp.exists() || !cp.isFile() || !cp.canRead()) { - throw new ConfigurationException("invite.sender.email.contentPath", getContentPath() + " does not exist, is not a file or cannot be read"); - } else { - log.info("Content path: {}", cp.getAbsolutePath()); + log.warn(getContentPath() + " does not exist, is not a file or cannot be read"); } } }