I have a requirement where I need to modify a python warning i.e I need to print a "user-friendly" warning message If I get a warning from the code. I don't want the file name on stdout.
with requests.get(url, stream=True, timeout=300,verify='/etc/ssl/certs/') as r:
I get a warning which prints the file name if the URL is self-signed.