Skip to content

Commit 4a83f0a

Browse files
committed
also allow for "ConnectionError" py3.8/3.9 for zero padded ip
1 parent 1083b40 commit 4a83f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aikido_zen/sinks/tests/requests_and_urllib3_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,5 @@ def test_zero_padded_ip(monkeypatch):
202202
set_context_and_lifecycle(url)
203203
# Can raise both errors : either connection times out -> 0127.0.0.01 not supported by platform
204204
# or it raises ssrf bug -> 0127.0.0.01 supported by platform
205-
with pytest.raises((AikidoSSRF, ConnectTimeout)):
205+
with pytest.raises((AikidoSSRF, ConnectTimeout, ConnectionError)):
206206
requests.get(url)

0 commit comments

Comments
 (0)