Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
4ebf6259
Commit
4ebf6259
authored
Oct 25, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsgi: Do not access sys.stderr .
parent
5662c79a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
caucase/wsgi.py
caucase/wsgi.py
+2
-3
No files found.
caucase/wsgi.py
View file @
4ebf6259
...
@@ -22,7 +22,6 @@ from __future__ import absolute_import
...
@@ -22,7 +22,6 @@ from __future__ import absolute_import
import
httplib
import
httplib
import
json
import
json
import
traceback
import
traceback
import
sys
from
.
import
utils
from
.
import
utils
from
.
import
exceptions
from
.
import
exceptions
...
@@ -191,8 +190,8 @@ class Application(object):
...
@@ -191,8 +190,8 @@ class Application(object):
except
exceptions
.
CertificateAuthorityException
,
e
:
except
exceptions
.
CertificateAuthorityException
,
e
:
raise
BadRequest
(
str
(
e
))
raise
BadRequest
(
str
(
e
))
except
Exception
:
except
Exception
:
print
>>
sys
.
stderr
,
'Unhandled exception'
,
environ
[
'wsgi.errors'
].
write
(
'Unhandled exception
\
n
'
)
traceback
.
print_exc
(
file
=
sys
.
stderr
)
traceback
.
print_exc
(
file
=
environ
[
'wsgi.errors'
]
)
raise
ApplicationError
raise
ApplicationError
except
ApplicationError
,
e
:
except
ApplicationError
,
e
:
status
=
e
.
status
status
=
e
.
status
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment