0001-backoffice-notify-admins-in-case-of-spurious-excepti.patch
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 |
- |