示例#1
0
文件: base.py 项目: arturodr/indico
    def _processGeneralError(self, e):
        """Treats general errors occured during the process of a RH.
        """

        Logger.get('requestHandler').info('Request %s finished with: "%s"' %
                                          (id(self._req), e))

        p = errors.WPGenericError(self)
        return p.display()
示例#2
0
    def _processGeneralError(self, e):
        """Treats general errors occured during the process of a RH."""

        if Config.getInstance().getPropagateAllExceptions():
            raise
        return errors.WPGenericError(self).display()