From 5027b59150294b27935d251779f05d477f96d1e2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 20 Jun 2022 12:37:16 +0300 Subject: [PATCH] Catch the Throwable interface instead of the exception class --- application/controllers/Google.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Google.php b/application/controllers/Google.php index 5d2c56fd..066cb902 100644 --- a/application/controllers/Google.php +++ b/application/controllers/Google.php @@ -183,7 +183,7 @@ class Google extends EA_Controller { { $google_events = $CI->google_sync->get_sync_events($google_calendar, $start, $end); } - catch (Exception $e) + catch (Throwable $e) { if ($e->getCode() === 404) {