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])