summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-07-13 10:59:01 -0400
committerEvan Prodromou <evan@status.net>2010-07-13 10:59:01 -0400
commitd706a3e21ba88afc9e7a19652aa19eb4e8c54cd2 (patch)
treeda36250f8cd1c42da10d74fdde765ac1bb2e91cb
parent6968c96b44d17295ceb229af2385449400f4976a (diff)
handle missing profile for notices better in NoticeList
-rw-r--r--lib/noticelist.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index e23cf3b6d..17adf3a49 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -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');