From 1191154d5a6c30b418dcdcf68246af0972389299 Mon Sep 17 00:00:00 2001 From: Skillet Date: Wed, 23 Aug 2023 22:42:22 -0400 Subject: [PATCH] fix errors --- simpleFileServer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/simpleFileServer.py b/simpleFileServer.py index 1a47413..89c617d 100644 --- a/simpleFileServer.py +++ b/simpleFileServer.py @@ -67,13 +67,12 @@ class serveRA(http.server.SimpleHTTPRequestHandler): def startServer(): handler = serveRA - started = False - while not started: + while True: + print("trying to start...") try: with socketserver.TCPServer(("", PORT), handler) as httpd: print('starting server!') httpd.serve_forever() - started = True except: print("server did not start trying again!") sleep(5)