You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clever/__init__.py
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@
51
51
pass
52
52
else:
53
53
ifmajor==0and (minor<8or (minor==8andpatch<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,7 +72,7 @@
72
72
73
73
ifnot_httplib:
74
74
raiseImportError(
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.")
'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
ifmy_auth.get('token') isNone:
239
239
raiseAuthenticationError('Must provide api token auth. {}'.format(my_auth))
msg="Unexpected error communicating with Clever. If this problem persists, let us know at [email protected]."
337
+
msg="Unexpected error communicating with Clever. If this problem persists, let us know at tech-[email protected]."
338
338
err="%s: %s"% (type(e).__name__, e.message)
339
339
else:
340
-
msg="Unexpected error communicating with Clever. It looks like there's probably a configuration issue locally. If this problem persists, let us know at [email protected]."
340
+
msg="Unexpected error communicating with Clever. It looks like there's probably a configuration issue locally. If this problem persists, let us know at tech-[email protected]."
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."% (
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
-
msg="Unexpected error communicating with Clever. If this problem persists, let us know at [email protected]."
402
+
msg="Unexpected error communicating with Clever. If this problem persists, let us know at tech-[email protected]."
msg="The Clever library attempted to fetch an invalid URL (%r). This is likely due to a bug in the Clever Python bindings. Please let us know at [email protected]."% (
438
+
msg="The Clever library attempted to fetch an invalid URL (%r). This is likely due to a bug in the Clever Python bindings. Please let us know at tech-[email protected]."% (
439
439
abs_url, )
440
440
elifisinstance(e, urlfetch.DownloadError):
441
441
msg="There were a problem retrieving data from Clever."
Copy file name to clipboardExpand all lines: clever/importer.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,6 @@ def import_json():
16
16
returnsimplejson
17
17
exceptImportError:
18
18
if_json_loadedisNone:
19
-
raiseImportError("Clever requires a JSON library, which you do not appear to have. Please install the simplejson library. HINT: Try installing the python simplejson library via 'pip install simplejson' or 'easy_install simplejson', or contact [email protected] with questions.")
19
+
raiseImportError("Clever requires a JSON library, which you do not appear to have. Please install the simplejson library. HINT: Try installing the python simplejson library via 'pip install simplejson' or 'easy_install simplejson'.")
20
20
else:
21
-
raiseImportError("Clever requires a JSON library with the same interface as the Python 2.6 'json' library. You appear to have a 'json' library with a different interface. Please install the simplejson library. HINT: Try installing the python simplejson library via 'pip install simplejson' or 'easy_install simplejson', or contact [email protected] with questions.")
21
+
raiseImportError("Clever requires a JSON library with the same interface as the Python 2.6 'json' library. You appear to have a 'json' library with a different interface. Please install the simplejson library. HINT: Try installing the python simplejson library via 'pip install simplejson' or 'easy_install simplejson'.")
0 commit comments