aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Schedule.php')
-rw-r--r--model/Schedule.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index e6aef7c..0eabc73 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -37,7 +37,13 @@ class Schedule extends ModelBase
return $schedule;
// download schedule-xml
- $schedule = $this->fetchSchedule();
+ try {
+ $schedule = $this->fetchSchedule();
+ }
+ catch(ErrorException $e)
+ {
+ return array();
+ }
$mapping = $this->getScheduleToRoomSlugMapping();
$program = array();