2to3: crawler.py port try as
This commit is contained in:
		@@ -94,7 +94,7 @@ class VerifiedHTTPSHandler(HTTPSHandler):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            return self.do_open(http_class_wrapper, req)
 | 
					            return self.do_open(http_class_wrapper, req)
 | 
				
			||||||
        except URLError, e:
 | 
					        except URLError as e:
 | 
				
			||||||
            if type(e.reason) == ssl.SSLError and e.reason.args[0] == 1:
 | 
					            if type(e.reason) == ssl.SSLError and e.reason.args[0] == 1:
 | 
				
			||||||
                raise InvalidCertificateException(req.host, '',
 | 
					                raise InvalidCertificateException(req.host, '',
 | 
				
			||||||
                                                  e.reason.args[1])
 | 
					                                                  e.reason.args[1])
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user