aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--model/Schedule.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index 86fddcf..42849d1 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -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();