Fail gracefully when the Schedule is unreachable

This commit is contained in:
MaZderMind 2015-04-03 10:29:50 +02:00
parent ae76dc32ef
commit f31ab92466

View file

@ -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();