From 57741c46ef6ac4d3f28845735d39f1889ee5b45b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 10 Apr 2011 19:33:11 -0400 Subject: [PATCH] try to fall back to default for exceptions on microapps --- lib/microappplugin.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/microappplugin.php b/lib/microappplugin.php index cd325560d3..f36253db93 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -284,7 +284,14 @@ abstract class MicroAppPlugin extends Plugin $out = $nli->out; $notice = $nli->notice; - $this->showNotice($notice, $out); + try { + $this->showNotice($notice, $out); + } catch (Exception $e) { + common_log(LOG_ERR, $e->getMessage()); + // try to fall back + $nli->showAuthor(); + $nli->showContent(); + } $nli->showNoticeLink(); $nli->showNoticeSource(); -- 2.39.5