Commit dcf09c09 authored by Romain Courteaud's avatar Romain Courteaud

Delete only if method exists

parent efed5647
......@@ -76,7 +76,7 @@ def fakeSlapAuth():
def unfakeSlapAuth():
from httplib import HTTPConnection
if getattr(HTTPConnection, '_original_request', None) is None:
if getattr(HTTPConnection, '_original_request', None) is not None:
HTTPConnection.request = HTTPConnection._original_request
delattr(HTTPConnection, '_original_request')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment