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