|
51 | 51 | pass |
52 | 52 | else: |
53 | 53 | if major == 0 and (minor < 8 or (minor == 8 and patch < 8)): |
54 | | - print( 'Warning: the Clever library requires that your Python "requests" library has a version no older than 0.8.8, but your "requests" library has version %s. Clever will fall back to an alternate HTTP library, so everything should work, though we recommend upgrading your "requests" library. If you have any questions, please contact [email protected]. (HINT: running "pip install -U requests" should upgrade your requests library to the latest version.)' % ( |
| 54 | + print('Warning: the Clever library requires that your Python "requests" library has a version no older than 0.8.8, but your "requests" library has version %s. Clever will fall back to an alternate HTTP library, so everything should work, though we recommend upgrading your "requests" library. (HINT: running "pip install -U requests" should upgrade your requests library to the latest version.)' % ( |
55 | 55 | version, ), file=sys.stderr) |
56 | 56 | _httplib = None |
57 | 57 |
|
|
72 | 72 |
|
73 | 73 | if not _httplib: |
74 | 74 | raise ImportError( |
75 | | - "Clever requires one of pycurl, Google App Engine's urlfetch, or urllib2. If you are on a platform where none of these libraries are available, please let us know at [email protected].") |
| 75 | + "Clever requires one of pycurl, Google App Engine's urlfetch, or urllib2.") |
76 | 76 |
|
77 | 77 | from .version import VERSION |
78 | 78 | from . import importer |
@@ -234,7 +234,7 @@ def request_raw(self, meth, url, params={}): |
234 | 234 | my_auth = self._auth or global_auth |
235 | 235 | if my_auth is None: |
236 | 236 | raise AuthenticationError( |
237 | | - 'No authentication method provided. (HINT: "clever.api_key = <API-KEY>" is deprecated. Set your API token using "clever.set_token(<OAUTH-TOKEN>)". You can generate API tokens from the Clever web interface. See https://clever.com/developers/docs for details, or email [email protected] if you have any questions.') |
| 237 | + 'No authentication method provided. (HINT: "clever.api_key = <API-KEY>" is deprecated. Set your API token using "clever.set_token(<OAUTH-TOKEN>)". You can generate API tokens from the Clever web interface. See https://clever.com/developers/docs for details.') |
238 | 238 | if my_auth.get('token') is None: |
239 | 239 | raise AuthenticationError('Must provide api token auth. {}'.format(my_auth)) |
240 | 240 |
|
@@ -393,10 +393,10 @@ def handle_pycurl_error(self, e): |
393 | 393 | if e[0] in [pycurl.E_COULDNT_CONNECT, |
394 | 394 | pycurl.E_COULDNT_RESOLVE_HOST, |
395 | 395 | pycurl.E_OPERATION_TIMEOUTED]: |
396 | | - msg = "Could not connect to Clever (%s). Please check your internet connection and try again. If this problem persists, you should check Clever's service status at http://status.clever.com, or let us know at [email protected]." % ( |
| 396 | + msg = "Could not connect to Clever (%s). Please check your internet connection and try again. If this problem persists, you should check Clever's service status at http://status.clever.com." % ( |
397 | 397 | api_base, ) |
398 | 398 | elif e[0] == pycurl.E_SSL_CACERT or e[0] == pycurl.E_SSL_PEER_CERTIFICATE: |
399 | | - msg = "Could not verify Clever's SSL certificate. Please make sure that your network is not intercepting certificates. (Try going to %s in your browser.) If this problem persists, let us know at [email protected]." % ( |
| 399 | + msg = "Could not verify Clever's SSL certificate. Please make sure that your network is not intercepting certificates. (Try going to %s in your browser)." % ( |
400 | 400 | api_base, ) |
401 | 401 | else: |
402 | 402 | msg = "Unexpected error communicating with Clever. If this problem persists, let us know at [email protected]." |
|
0 commit comments