currently, in "__ init __.BaseAPI()" , on an error, only the error text is shown:
e.g. "slacker.Error: missing_scope"
which hides the detailed reasons for the error, 'coz of usage of just "error.text", instead of using "error.raw", in line # 112
this change has been implemented in these lines in the below forked repo:
https://github.com/fixbugsnow/slacker/blob/master/slacker/__init__.py#L102-L112
making this change will show the full error details, so the users knows all the reasons behind the error, just like Slack's API "Tester" shows the detailed results for errors:
e.g. slacker.Error: '{"ok": false,"error": "missing_scope","needed": "users:read","provided": "admin,identify"}
pgm flow happens (and still will happen) like so:
Traceback (most recent call last):
* * *
File "c:\program files (x86)\python37\lib\site-packages\slacker\__init__.py", line 332, in list
return self.get('users.list', params={'presence': int(presence)})
File "c:\program files (x86)\python37\lib\site-packages\slacker\__init__.py", line 121, in get
api, **kwargs
File "c:\program files (x86)\python37\lib\site-packages\slacker\__init__.py", line 103, in _request
raise Error(response.raw)
slacker.Error: {"ok":false,"error":"missing_scope","needed":"users:read","provided":"admin,identify"}
would like to see this change (or better) implemented in this original repo, for benefit of users of this repo and it's forks