2to3: crawler.py improve except

master
pictuga 2015-02-25 18:07:09 +08:00
parent 6a06b742f9
commit a0f2e0d995
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ try:
from urllib2 import URLError
from urllib2 import HTTPSHandler, BaseHandler, AbstractHTTPHandler, Request, addinfourl
from httplib import HTTPException, HTTPConnection, HTTPS_PORT
except:
except ImportError:
from io import StringIO
from urllib.error import URLError
from urllib.request import HTTPSHandler, BaseHandler, AbstractHTTPHandler, Request, addinfourl