Added try/catch

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-15 15:13:33 +01:00
parent 4cbf6ac393
commit a0f4f30a50

View File

@@ -124,7 +124,13 @@ class UserImporter extends ItemImporter
if (($user->email) && ($user->activated == '1')) {
if ($this->send_welcome) {
$user->notify(new WelcomeNotification($user));
try {
$user->notify(new WelcomeNotification($user));
} catch (\Exception $e) {
Log::warning('Could not send welcome notification for user ' . $e->getMessage());
}
}
}