mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 14:44:21 +00:00
Fail gracefully when the Schedule is unreachable
This commit is contained in:
parent
ae76dc32ef
commit
f31ab92466
1 changed files with 8 additions and 1 deletions
|
@ -46,7 +46,14 @@ class Schedule extends ModelBase
|
|||
return $schedule;
|
||||
|
||||
// download schedule-xml
|
||||
$schedule = $this->fetchSchedule();
|
||||
try
|
||||
{
|
||||
$schedule = $this->fetchSchedule();
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
$mapping = $this->getScheduleToRoomSlugMapping();
|
||||
$program = array();
|
||||
|
|
Loading…
Reference in a new issue