[issue35422] misleading error message from ssl.get_server_certificate() when bad port

2018-12-05 Thread Cédric Van Rompay
New submission from Cédric Van Rompay : When calling ssl.get_server_certificate() with a bad port number (I used 80 when I should have been using 443), the error raised is a bit misleading: >>> import ssl >>> ssl.get_server_certificate(('gitlab.com',80)) [...]

[issue35216] misleading error message from shutil.copy()

2018-11-12 Thread Cédric Van Rompay
New submission from Cédric Van Rompay : When calling `shutil.copy('file.txt', 'not_here/')`, if directory `not_here/` does not exist, the raised error is: IsADirectoryError: [Errno 21] Is a directory: 'not_here/' If the intent of the user was to copy a file in a directory but the user