Projet

Général

Profil

0001-backoffice-notify-admins-in-case-of-spurious-excepti.patch

Frédéric Péters, 11 septembre 2015 18:20

Télécharger (1,28 ko)

Voir les différences:

Subject: [PATCH] backoffice: notify admins in case of spurious exception
 (#8247)

 wcs/forms/common.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
wcs/forms/common.py
14 14
# You should have received a copy of the GNU General Public License
15 15
# along with this program; if not, see <http://www.gnu.org/licenses/>.
16 16

  
17
import sys
18

  
17 19
from quixote import get_publisher, get_request, get_response, get_session, redirect
18 20
from quixote.directory import Directory
19 21
from quixote.html import TemplateIO, htmltext
......
423 425
            form = self.filled.get_workflow_form(user)
424 426
        except:
425 427
            # XXX: probably because there are mixed forms, with and without
426
            # workflows
428
            # workflow; send a trace nevertheless.
429
            get_publisher().notify_of_exception(sys.exc_info(), context='[BACKOFFICE]')
427 430
            form = Form()
428 431

  
429 432
        if form and form.is_submitted() and not form.has_errors():
430
-