fix errors

This commit is contained in:
Skillet 2023-08-23 22:42:22 -04:00
parent 64532ad098
commit 1191154d5a

View File

@ -67,13 +67,12 @@ class serveRA(http.server.SimpleHTTPRequestHandler):
def startServer(): def startServer():
handler = serveRA handler = serveRA
started = False while True:
while not started: print("trying to start...")
try: try:
with socketserver.TCPServer(("", PORT), handler) as httpd: with socketserver.TCPServer(("", PORT), handler) as httpd:
print('starting server!') print('starting server!')
httpd.serve_forever() httpd.serve_forever()
started = True
except: except:
print("server did not start trying again!") print("server did not start trying again!")
sleep(5) sleep(5)