From 6a06b742f95003bda290bb036d7199c90056f645 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Feb 2015 18:03:54 +0800 Subject: [PATCH] 2to3: crawler.py port try as --- morss/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/crawler.py b/morss/crawler.py index bfc97cf..90de263 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -94,7 +94,7 @@ class VerifiedHTTPSHandler(HTTPSHandler): try: 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: raise InvalidCertificateException(req.host, '', e.reason.args[1])