You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
diff -rup urlgrabber-3.0.0-orig/urlgrabber/keepalive.py urlgrabber-3.0.0/urlgrabber/keepalive.py
|
|
--- urlgrabber-3.0.0-orig/urlgrabber/keepalive.py 2006-07-20 16:15:58.000000000 -0400
|
|
+++ urlgrabber-3.0.0/urlgrabber/keepalive.py 2008-07-10 17:37:06.000000000 -0400
|
|
@@ -328,12 +328,16 @@ class HTTPHandler(KeepAliveHandler, urll
|
|
def http_open(self, req):
|
|
return self.do_open(HTTPConnection, req)
|
|
|
|
-class HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler):
|
|
- def __init__(self):
|
|
- KeepAliveHandler.__init__(self)
|
|
+# If SSL isn't available, don't make urlgrabber completely unusable
|
|
+try:
|
|
+ class HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler):
|
|
+ def __init__(self):
|
|
+ KeepAliveHandler.__init__(self)
|
|
|
|
- def https_open(self, req):
|
|
- return self.do_open(HTTPSConnection, req)
|
|
+ def https_open(self, req):
|
|
+ return self.do_open(HTTPSConnection, req)
|
|
+except:
|
|
+ pass
|
|
|
|
class HTTPResponse(httplib.HTTPResponse):
|
|
# we need to subclass HTTPResponse in order to
|