summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-03 23:16:55 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-03 23:16:55 -0700
commitcada661f62a5051998aace09b05db729e4663d64 (patch)
treea3fd74453e38b48f3090ac5395b43366c71037a7
parentf9ba05d4f68928edb4cd1e8d82388fc50f52d409 (diff)
downloadportage-cada661f62a5051998aace09b05db729e4663d64.tar.gz
portage-cada661f62a5051998aace09b05db729e4663d64.tar.bz2
portage-cada661f62a5051998aace09b05db729e4663d64.zip
Add back PortageException handler inside mod_mail_summary.finalize()
since portage.mail.send_mail() can raise this exception.
-rw-r--r--pym/portage/elog/mod_mail_summary.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/elog/mod_mail_summary.py b/pym/portage/elog/mod_mail_summary.py
index 296144736..1997ddd48 100644
--- a/pym/portage/elog/mod_mail_summary.py
+++ b/pym/portage/elog/mod_mail_summary.py
@@ -1,9 +1,9 @@
# elog/mod_mail_summary.py - elog dispatch module
-# Copyright 2006-2007 Gentoo Foundation
+# Copyright 2006-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import portage
-from portage.exception import AlarmSignal
+from portage.exception import AlarmSignal, PortageException
from portage.localization import _
from portage.util import writemsg
from portage import os
@@ -67,5 +67,7 @@ def _finalize(mysettings, items):
except AlarmSignal:
writemsg("Timeout in finalize() for elog system 'mail_summary'\n",
noiselevel=-1)
+ except PortageException as e:
+ writemsg("%s\n" % (e,), noiselevel=-1)
return