mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Catch the Throwable interface instead of the exception class
This commit is contained in:
parent
15af90ff2e
commit
5027b59150
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue