This is a backport of PR #1744 as merged into main (d5d149ec8047132907a8c197692872caa8ccebc0).
Once an upstream library changes its behaviour, we may observe
different error messages depending on the context.
This change fixes the following error:
assert "[Name or service not known]"
in ctx.value.task.error["description"]
E AssertionError: assert '[Name or service not known]'
in 'Cannot connect to host i-am-an-invalid-url.com:80 ssl:default [None]'
This is a backport of PR #1744 as merged into main (d5d149ec8047132907a8c197692872caa8ccebc0).
Once an upstream library changes its behaviour, we may observe different error messages depending on the context.
This change fixes the following error:
[noissue]