mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-23 11:43:44 +00:00
Added error handling for when a webserver is already running when starting or re-starting the app.
This commit is contained in:
@@ -9,6 +9,7 @@ import thread,SocketServer,SimpleHTTPServer
|
||||
from yattag import Doc
|
||||
from yattag import indent
|
||||
import os, sys
|
||||
import socket
|
||||
|
||||
import logging
|
||||
import logging.handlers
|
||||
@@ -112,6 +113,9 @@ class PseudoDailyScheduleController():
|
||||
core.print_info("Exiting the SET web server...")
|
||||
httpd.socket.close()
|
||||
|
||||
except socket.error, exc:
|
||||
print "Caught exception socket.error : %s" % exc
|
||||
|
||||
# handle the rest
|
||||
#except Exception:
|
||||
# print "[*] Exiting the SET web server...\n"
|
||||
|
||||
Reference in New Issue
Block a user