From 5cc3b765fd8e0d19d370ef5da1db7c93bddb06c5 Mon Sep 17 00:00:00 2001 From: saparatayev Date: Thu, 3 Feb 2022 11:22:00 +0500 Subject: [PATCH] api: catch exception on sms send --- plugins/tps/birzha/classes/SMS.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tps/birzha/classes/SMS.php b/plugins/tps/birzha/classes/SMS.php index 22af45773..ad61be241 100644 --- a/plugins/tps/birzha/classes/SMS.php +++ b/plugins/tps/birzha/classes/SMS.php @@ -22,8 +22,8 @@ class SMS unset($tx); return $result; } - catch (Exception $exception){ - Log::error($exception); + catch (\Throwable $th){ + Log::info($th); return 1; }