I've been working on a project to report bots (sort of ironic, but whatever.)
However when I go to call the report function, I always get an error along the lines of:
File "tinderTest.py", line 39, in <module> user.report(1, 'User is a bot') File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\models\user.py", line 102, in report return self._session._api.report(self.id, cause, text) File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\api.py", line 117, in report return self._post("/report/" + user, data) File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\api.py", line 55, in _post return self._request("post", url, data=data) File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\api.py", line 46, in _request raise errors.RequestError(result.status_code) pynder.errors.RequestError: 500
The snippet of how I'm calling is as followed:
user.report(1, 'User is a bot')
however I have tried calling it like:
user.report(1)
and got a similar error. Could someone please post an example of how report should be called?
I've been working on a project to report bots (sort of ironic, but whatever.)
However when I go to call the report function, I always get an error along the lines of:
File "tinderTest.py", line 39, in <module> user.report(1, 'User is a bot') File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\models\user.py", line 102, in report return self._session._api.report(self.id, cause, text) File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\api.py", line 117, in report return self._post("/report/" + user, data) File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\api.py", line 55, in _post return self._request("post", url, data=data) File "C:\Users\%user%\AppData\Local\Programs\Python\Python36\lib\site-packages\pynder-0.0.13-py3.6.egg\pynder\api.py", line 46, in _request raise errors.RequestError(result.status_code) pynder.errors.RequestError: 500
The snippet of how I'm calling is as followed: user.report(1, 'User is a bot')
however I have tried calling it like: user.report(1)
and got a similar error. Could someone please post an example of how report should be called?