Last change
on this file since 116 was
116,
checked in by mitty, 13 years ago
|
- publish internal tools for svn/trac
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | # -*- coding: utf-8 -*- |
---|
3 | # |
---|
4 | # Copyright (C) 2003-2009 Edgewall Software |
---|
5 | # Copyright (C) 2003-2004 Jonas Borgström <jonas@edgewall.com> |
---|
6 | # All rights reserved. |
---|
7 | # |
---|
8 | # This software is licensed as described in the file COPYING, which |
---|
9 | # you should have received as part of this distribution. The terms |
---|
10 | # are also available at http://trac.edgewall.org/wiki/TracLicense. |
---|
11 | # |
---|
12 | # This software consists of voluntary contributions made by many |
---|
13 | # individuals. For the exact contribution history, see the revision |
---|
14 | # history and logs, available at http://trac.edgewall.org/log/. |
---|
15 | # |
---|
16 | # Author: Jonas Borgström <jonas@edgewall.com> |
---|
17 | |
---|
18 | try: |
---|
19 | from trac.web import cgi_frontend |
---|
20 | cgi_frontend.run() |
---|
21 | except SystemExit: |
---|
22 | raise |
---|
23 | except Exception, e: |
---|
24 | import sys |
---|
25 | import traceback |
---|
26 | |
---|
27 | print>>sys.stderr, e |
---|
28 | traceback.print_exc(file=sys.stderr) |
---|
29 | |
---|
30 | print 'Status: 500 Internal Server Error' |
---|
31 | print 'Content-Type: text/plain' |
---|
32 | print |
---|
33 | print 'Oops...' |
---|
34 | print |
---|
35 | print 'Trac detected an internal error:', e |
---|
36 | print |
---|
37 | traceback.print_exc(file=sys.stdout) |
---|
Note: See
TracBrowser
for help on using the repository browser.