diff --git a/CHANGELOG.md b/CHANGELOG.md index e8a8212..b6874de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Changed +- Fix typos in error messages. ## [0.0.16] - 2020-01-22 ### Added @@ -88,4 +90,4 @@ ensure it's automatically sent in all API requests. [0.0.11]: https://github.com/zaproxy/zap-api-python/compare/0.0.10...0.0.11 [0.0.10]: https://github.com/zaproxy/zap-api-python/compare/0.0.9...0.0.10 [0.0.9]: https://github.com/zaproxy/zap-api-python/compare/0.0.8...0.0.9 -[0.0.8]: https://github.com/zaproxy/zap-api-python/compare/98ce6066deba2c65eb992489311e146fff9b3430...0.0.8 \ No newline at end of file +[0.0.8]: https://github.com/zaproxy/zap-api-python/compare/98ce6066deba2c65eb992489311e146fff9b3430...0.0.8 diff --git a/src/examples/zap_example_api_script.py b/src/examples/zap_example_api_script.py index f82fd4b..dd59b91 100755 --- a/src/examples/zap_example_api_script.py +++ b/src/examples/zap_example_api_script.py @@ -32,7 +32,7 @@ # MANDATORY. Define the listening address of ZAP instance localProxy = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"} -# MANDATORY. True to create another ZAP session (overwritte the former if the +# MANDATORY. True to create another ZAP session (overwrite the former if the # same name already exists), False to use an existing one isNewSession = True # MANDATORY. ZAP Session name diff --git a/src/zapv2/__init__.py b/src/zapv2/__init__.py index d5d4083..6048d13 100644 --- a/src/zapv2/__init__.py +++ b/src/zapv2/__init__.py @@ -170,11 +170,11 @@ def _request_api(self, url, query=None): response = self.session.get(url, params=query, proxies=self.__proxies, verify=False) if (self.__validate_status_code and response.status_code >= 300 and response.status_code < 500): - raise Exception("Non-successfull status code returned from ZAP, which indicates a bad request: " + raise Exception("Non-successful status code returned from ZAP, which indicates a bad request: " + str(response.status_code) + "response: " + response.text ) elif (self.__validate_status_code and response.status_code >= 500): - raise Exception("Non-successfull status code returned from ZAP, which indicates a ZAP internal error: " + raise Exception("Non-successful status code returned from ZAP, which indicates a ZAP internal error: " + str(response.status_code) + "response: " + response.text ) return response