campaignmonitor / createsend-python

A Python library for the Campaign Monitor API
http://campaignmonitor.github.io/createsend-python
MIT License
57 stars 63 forks source link

Stop hiding HTTP status codes #70

Open MarkBird opened 3 years ago

MarkBird commented 3 years ago

If the API returns a status code beginning 4, the library raises a ClientError. If it returns a status code beginning 5, the library raises a ServerError.

Why is it not including the HTTP status code in the error?? It's impossible to see what the actual error was if you just return an empty exception with literally no information in it.

perfectra1n commented 2 years ago

This library is just overengineered for no reason. Classes everywhere, my head is just spinning for something so simple.