270 |
try: |
try: |
271 |
lines = traceback.format_exception(exc_type, exc_value, |
lines = traceback.format_exception(exc_type, exc_value, |
272 |
exc_traceback) |
exc_traceback) |
273 |
message = _("An unhandled exception occurred:\n%s\n") % exc_value+\ |
message = _("An unhandled exception occurred:\n%s\n" |
274 |
_("(please report to") +\ |
"(please report to" |
275 |
" http://thuban.intevation.org/bugtracker.html)"\ |
" http://thuban.intevation.org/bugtracker.html)" |
276 |
"\n\n\n"+\ |
"\n\n%s") % (exc_value, "".join(lines)) |
|
"".join(lines) |
|
277 |
print message |
print message |
278 |
|
|
279 |
# We don't use an explicit parent here because this method might |
# We don't use an explicit parent here because this method might |