From f74ec66b339cb81bf4bc6e3e59935137ae7b63ce Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Sun, 1 Apr 2012 23:15:40 +0100 Subject: Fix: Use sys.exit() so the status can be passed to a sh script (for restarting). --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 4f39b1b..d0297eb 100755 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ try: import config except: print "no config file found. please move config.py.template to config.py and edit to your needs!" - exit(0); + sys.exit(0); from being import * from net.packet import * @@ -898,7 +898,7 @@ def main(): if errorOccured: logger.info(errorOccured) shop_broadcaster.stop() - exit(0) + sys.exit(1) else: logger.info("Inventory Check Passed.") @@ -1076,7 +1076,7 @@ def main(): if errorOccured: logger.info(errorOccured) shop_broadcaster.stop() - exit(0) + sys.exit(1) else: pass -- cgit v1.2.3-70-g09d2