diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-26 12:27:51 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-26 12:27:51 +0200 |
| commit | 19bede4fc7f7320bb4eb16c3fe1a211b19ab4714 (patch) | |
| tree | 6a53629feb7bd8c7a9380d204287f3429ed2f378 /opendc/util/exceptions.py | |
| parent | 92b94b59ad80329a2c99471edbf5bbdc9af1e525 (diff) | |
Revamp error responses everywhere
Diffstat (limited to 'opendc/util/exceptions.py')
| -rw-r--r-- | opendc/util/exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/util/exceptions.py b/opendc/util/exceptions.py index e73dad4f..2563c419 100644 --- a/opendc/util/exceptions.py +++ b/opendc/util/exceptions.py @@ -57,9 +57,9 @@ class MissingParameterError(ParameterError): self.parameter_location = parameter_location -class ClientRequestError(Exception): +class ClientError(Exception): """Raised when a 4xx response is to be returned.""" def __init__(self, response): - super(ClientRequestError, self).__init__(str(response)) + super(ClientError, self).__init__(str(response)) self.response = response |
