Closed cyber-chuvash closed 5 years ago
Thanks for the improvement. Could you provide an example what kind of output do you expect to get from it?
Something like:
"VkAPIError(error_code=10, message='Internal server error', request_params={'oauth': '1', 'method': 'messages.send', 'v': '5.92', 'random_id': '0', 'peer_id': '2000000007'})"
This implementation would actually yield such string, but without whitespaces between parameters, because it would require either changing the __str__()
method, which I used to fill in the parameters, or duplicating most of the __str__()
code
Okay. That looks good to me.
Update VkAPIError so that the repr() call on it returns a useful string with all of the attributes instead of the useless "VkAPIError()"