Note that this PR does not address the problem reported in issue #397 because I think that error is raised by the HTTPS thread after start_http_server() has already returned.
coverage: 37.628%. first build
when pulling 48c478707fb7d7211c5258df5f66725cfda14301 on andy/add-http-exception-handling
into 2d7e110eb56c9457f0840df9d0b830e06e90080e on master.
For details, see the commit message.
Note that this PR does not address the problem reported in issue #397 because I think that error is raised by the HTTPS thread after
start_http_server()
has already returned.