diff options
author | mkaay <mkaay@mkaay.de> | 2009-11-12 22:54:29 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-11-12 22:54:29 +0100 |
commit | b7dff98c2e76b28422d40076273753b4216a819a (patch) | |
tree | e2a24cdde775792624f30b7c24624c7c57068209 /pyLoadCore.py | |
parent | shareonline.biz premium (diff) | |
download | pyload-b7dff98c2e76b28422d40076273753b4216a819a.tar.xz |
better exception handling for sockets
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 6 |
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 |