News for hackers. Stuff that matters.
Re:Postmodern Error Handling in Python 3.6 by jwilk on Saturday February 25, 2017 @07:02AM (#13731221)

  import urllib.request
  try:
      urllib.request.urlopen('https://wrong.host.badssl.com/')
  except (IOError, OSError):
      pass
causes:

  ssl.CertificateError: hostname 'wrong.host.badssl.com' doesn't match either of '*.badssl.com', 'badssl.com'

There are no comments on this comment yet.