[Pkg-mozext-commits] [nostalgy] 180/252: Avoid some useless error message.
David Prévot
taffit at moszumanska.debian.org
Tue Jun 14 15:24:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository nostalgy.
commit 4e89c47e4be76e14d5517e2c556d0089dc164e90
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date: Wed Dec 16 11:53:19 2009 +0000
Avoid some useless error message.
---
content/nostalgy.js | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/content/nostalgy.js b/content/nostalgy.js
index 10f9211..915eff9 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -562,18 +562,19 @@ function register_folder(folder) {
function NostalgySuggest() {
var r = null;
+ if (!gDBView) return;
try {
- r = NostalgyRules.apply(MailAuthor(), MailSubject(), MailRecipients());
- if (r) { return(r); }
- } catch (ex) { NostalgyDebug("ex:" + ex); }
-
-if ( nostalgy_completion_options.use_statistical_prediction )
-{
- try {
- r = NostalgyPredict.predict_folder(1);
- if (r) { return(r); }
- } catch (ex) { NostalgyDebug("ex:" + ex); }
-}
+ r = NostalgyRules.apply(MailAuthor(), MailSubject(), MailRecipients());
+ if (r) { return(r); }
+ } catch (ex) { NostalgyDebug("ex1:" + ex); }
+
+ if ( nostalgy_completion_options.use_statistical_prediction )
+ {
+ try {
+ r = NostalgyPredict.predict_folder(1);
+ if (r) { return(r); }
+ } catch (ex) { NostalgyDebug("ex2:" + ex); }
+ }
// r = last_folder_author[MailAuthor()];
// if (r) { return(r); }
@@ -581,9 +582,9 @@ if ( nostalgy_completion_options.use_statistical_prediction )
// if (r) { return(r); }
if (nostalgy_completion_options.restrict_to_current_server) {
- return(last_folder_server[gDBView.msgFolder.server.key]);
+ return(last_folder_server[gDBView.msgFolder.server.key]);
} else {
- return(last_folder);
+ return(last_folder);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git
More information about the Pkg-mozext-commits
mailing list