Skip to content

Commit

Permalink
Delete redundant code.
Browse files Browse the repository at this point in the history
modified:   src/zExceptions/__init__.py
  • Loading branch information
jugmac00 committed Apr 29, 2019
1 parent d34aab0 commit 3999985
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/zExceptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ def __call__(self, environ, start_response):
headers = list(getattr(self, 'headers', {}).items())
if not self.empty_body:
headers.append(('content-type', 'text/html;charset=utf-8'))
if self.errmsg is not None:
reason = self.errmsg
reason = status_reasons[self.getStatus()]
start_response(
'%d %s' % (self.getStatus(), reason),
Expand Down

0 comments on commit 3999985

Please sign in to comment.