Permalink
Browse files

fix fetchers.usingCurl to properly work with ExceptionWrappingFetcher

  • Loading branch information...
1 parent 06d0436 commit 3933954e48af90ac7d08129e00a8decafadbc572 @temoto temoto committed Sep 15, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 openid/fetchers.py
View
@@ -93,7 +93,10 @@ def setDefaultFetcher(fetcher, wrap_exceptions=True):
def usingCurl():
"""Whether the currently set HTTP fetcher is a Curl HTTP fetcher."""
- return isinstance(getDefaultFetcher(), CurlHTTPFetcher)
+ fetcher = getDefaultFetcher()
+ if isinstance(fetcher, ExceptionWrappingFetcher):
+ fetcher = fetcher.fetcher
+ return isinstance(fetcher, CurlHTTPFetcher)
class HTTPResponse(object):
"""XXX document attributes"""

0 comments on commit 3933954

Please sign in to comment.