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
{{ message }}
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
Currently when the client hits the request limit, the HTTP 403 with the response body <h1>Developer Over Rate</h1>.
But the user gets an opaque message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/egnyte/resources.py", line 204, in list
return self._get()
File "/usr/local/lib/python3.7/site-packages/egnyte/resources.py", line 53, in _get
json = exc.default.check_json_response(self._client.GET(self._url))
File "/usr/local/lib/python3.7/site-packages/egnyte/exc.py", line 183, in check_json_response
r = self.check_response(response, *ok_statuses)
File "/usr/local/lib/python3.7/site-packages/egnyte/exc.py", line 168, in check_response
raise error_type(*errors)
egnyte.exc.InsufficientPermissions: <exception str() failed>
The errors passed into the error constructor include the essential information, but something is missing when the error prints.
I believe the error is that for item in self should be self.args:
def __str__(self):
"""Pretty-printed version. Use repr for bare vesion instead"""
contents = []
for item in self: # <===== should be self.args?
if isinstance(item, dict):
contents.append("{%s}" % ", ".join(sorted(["%s: '%s'" % (k, v) for (k, v) in item.items()])))
else:
contents.append(str(item))
return "<%s: %s>" % (self.__class__.__name__, ", ".join(contents))
This is for the latest production release 0.5.3, which was released in 2017. Looks like master is still changing.
I'll make a PR for this if you are up for fixing the production release that is what people get when they install with pip?
Currently when the client hits the request limit, the HTTP 403 with the response body
<h1>Developer Over Rate</h1>
.But the user gets an opaque message:
The errors passed into the error constructor include the essential information, but something is missing when the error prints.
The text was updated successfully, but these errors were encountered: