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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
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
import
httplib
import
json
import
traceback
import
sys
from
.
import
utils
from
.
import
exceptions
...
...
@@ -191,8 +190,8 @@ class Application(object):
except
exceptions
.
CertificateAuthorityException
,
e
:
raise
BadRequest
(
str
(
e
))
except
Exception
:
print
>>
sys
.
stderr
,
'Unhandled exception'
,
traceback
.
print_exc
(
file
=
sys
.
stderr
)
environ
[
'wsgi.errors'
].
write
(
'Unhandled exception
\
n
'
)
traceback
.
print_exc
(
file
=
environ
[
'wsgi.errors'
]
)
raise
ApplicationError
except
ApplicationError
,
e
:
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