SyntaxFix
Write A Post
Hire A Developer
Questions
Nothing worked for me except running a subprocess with this command, before calling HTTPServer(('', 443), myHandler):
HTTPServer(('', 443), myHandler)
kill -9 $(lsof -ti tcp:443)
Of course this is only for linux-like OS!