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
fix(emails): catch server connection exceptions
Signed-off-by: Anna Larch <[email protected]>
  • Loading branch information
miaulalala committed Nov 20, 2025
commit 83a8a3cbcece54a1b3179a0e3bf31577c0c7aaaf
8 changes: 7 additions & 1 deletion lib/MailQueueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ public function sendEmails(int $limit, int $sendTime, bool $forceSending = false
continue;
}

$userObject = $this->userManager->get($user);
try {
$userObject = $this->userManager->get($user);
} catch (\Exception $e) {
$this->logger->error('An error happened while trying to find ' . $user . ', skipping', ['exception' => $e]);
continue;
}

$email = $userObject ? $userObject->getEMailAddress() : '';
if (empty($email)) {
// The user did not setup an email address
Expand Down
Loading