Browse code

BM-14042 Impr: Better catch exception in ReminderJob

Arnaud Aujon Chevallier authored on 10/01/2019 14:24:34
Showing 1 changed files
... ...
@@ -210,7 +210,7 @@ public class ReminderJob implements IScheduledJob {
210 210
 						Map<String, String> settings = userSettingsSearch.apply(cd.owner);
211 211
 						ItemValue<net.bluemind.mailbox.api.Mailbox> user = userSearch.apply(cd.owner);
212 212
 						count += sendReminders(sched, rid, d, user, settings, reminders, alarmSupport);
213
-					} catch (ServerFault e) {
213
+					} catch (Exception e) {
214 214
 						logger.error("Impossible to send reminder for " + cd.owner, e);
215 215
 						iterator.remove();
216 216
 					}