Catch the Throwable interface instead of the exception class

This commit is contained in:
Alex Tselegidis 2022-06-20 12:37:16 +03:00
parent 15af90ff2e
commit 5027b59150
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class Google extends EA_Controller {
{ {
$google_events = $CI->google_sync->get_sync_events($google_calendar, $start, $end); $google_events = $CI->google_sync->get_sync_events($google_calendar, $start, $end);
} }
catch (Exception $e) catch (Throwable $e)
{ {
if ($e->getCode() === 404) if ($e->getCode() === 404)
{ {