Skip to content

Commit 1f3c5d9

Browse files
committed
Fix typos in messages and examples
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
1 parent 2b8b036 commit 1f3c5d9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8+
### Changed
9+
- Fix typos in error messages.
810

911
## [0.0.16] - 2020-01-22
1012
### Added
@@ -88,4 +90,4 @@ ensure it's automatically sent in all API requests.
8890
[0.0.11]: https://github.com/zaproxy/zap-api-python/compare/0.0.10...0.0.11
8991
[0.0.10]: https://github.com/zaproxy/zap-api-python/compare/0.0.9...0.0.10
9092
[0.0.9]: https://github.com/zaproxy/zap-api-python/compare/0.0.8...0.0.9
91-
[0.0.8]: https://github.com/zaproxy/zap-api-python/compare/98ce6066deba2c65eb992489311e146fff9b3430...0.0.8
93+
[0.0.8]: https://github.com/zaproxy/zap-api-python/compare/98ce6066deba2c65eb992489311e146fff9b3430...0.0.8

src/examples/zap_example_api_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# MANDATORY. Define the listening address of ZAP instance
3333
localProxy = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"}
3434

35-
# MANDATORY. True to create another ZAP session (overwritte the former if the
35+
# MANDATORY. True to create another ZAP session (overwrite the former if the
3636
# same name already exists), False to use an existing one
3737
isNewSession = True
3838
# MANDATORY. ZAP Session name

src/zapv2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ def _request_api(self, url, query=None):
170170
response = self.session.get(url, params=query, proxies=self.__proxies, verify=False)
171171

172172
if (self.__validate_status_code and response.status_code >= 300 and response.status_code < 500):
173-
raise Exception("Non-successfull status code returned from ZAP, which indicates a bad request: "
173+
raise Exception("Non-successful status code returned from ZAP, which indicates a bad request: "
174174
+ str(response.status_code)
175175
+ "response: " + response.text )
176176
elif (self.__validate_status_code and response.status_code >= 500):
177-
raise Exception("Non-successfull status code returned from ZAP, which indicates a ZAP internal error: "
177+
raise Exception("Non-successful status code returned from ZAP, which indicates a ZAP internal error: "
178178
+ str(response.status_code)
179179
+ "response: " + response.text )
180180
return response

0 commit comments

Comments
 (0)