Use requests.exceptions instead of requests.packages.urllib3.exceptions