mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2024-12-30 15:19:12 -06:00
fix errors
This commit is contained in:
parent
64532ad098
commit
1191154d5a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user