Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't break completely when creating the digest fail for one user
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Jan 25, 2021
commit a9e17714331d35d54407914f7232a53f807bc2e0
10 changes: 9 additions & 1 deletion lib/DigestSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,15 @@ public function sendDigests(int $now): void {
continue;
}

$this->sendDigestForUser($user, $now, $timezone, $language);
try {
$this->sendDigestForUser($user, $now, $timezone, $language);
} catch (\Throwable $e) {
$this->logger->error('Exception occurred while sending user digest email', [
'exception' => $e,
]);
}
// We still update the digest time after an failed email,
// so it hopefully works tomorrow
$this->config->setUserValue($user, 'activity', 'digest', $timezoneDigestDay[$timezone]);
}
}
Expand Down