summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-12 22:54:29 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-12 22:54:29 +0100
commitb7dff98c2e76b28422d40076273753b4216a819a (patch)
treee2a24cdde775792624f30b7c24624c7c57068209 /pyLoadCore.py
parentshareonline.biz premium (diff)
downloadpyload-b7dff98c2e76b28422d40076273753b4216a819a.tar.xz
better exception handling for sockets
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 9c9d468b4..a88589926 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -288,7 +288,8 @@ class Core(object):
self.server = ServerThread(self)
self.server.start()
except Exception, e:
- self.logger.error("failed starting socket server, CLi and Gui will not be available: %s" % str(e))
+ self.logger.error("Failed starting socket server, CLI and GUI will not be available: %s" % str(e))
+ exit()
def init_webserver(self):
@@ -299,7 +300,8 @@ class Core(object):
self.webserver = WebServer(self)
self.webserver.start()
except Exception, e:
- self.looger.error("failed starting webserver, no webinterface available: %s" % str(e))
+ self.logger.error("Failed starting webserver, no webinterface available: %s" % str(e))
+ exit()
def kill(self):
self.do_kill = True