Skip to content

Commit

Permalink
Use sys.exc_info() rather than the long-deprecated sys.exc_value. (#99)
Browse files Browse the repository at this point in the history
* Use sys.exc_info() rather than the long-deprecated sys.exc_value.
  • Loading branch information
Ms2ger authored and jgraham committed Sep 1, 2016
1 parent 8079fb7 commit 452309c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wptserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(self, server_address, RequestHandlerClass, router, rewriter, bind_h
server_side=True)

def handle_error(self, request, client_address):
error = sys.exc_value
error = sys.exc_info()[1]

if ((isinstance(error, socket.error) and
isinstance(error.args, tuple) and
Expand Down

0 comments on commit 452309c

Please sign in to comment.