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

View file

@ -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)
{