handle missing profile for notices better in NoticeList

This commit is contained in:
Evan Prodromou 2010-07-13 10:59:01 -04:00
parent 6968c96b44
commit d706a3e21b

View File

@ -96,8 +96,14 @@ class NoticeList extends Widget
break;
}
$item = $this->newListItem($this->notice);
$item->show();
try {
$item = $this->newListItem($this->notice);
$item->show();
} catch (Exception $e) {
// we log exceptions and continue
common_log(LOG_ERR, $e->getMessage());
continue;
}
}
$this->out->elementEnd('ol');