summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2012-04-01 23:15:40 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2012-04-01 23:15:40 +0100
commitf74ec66b339cb81bf4bc6e3e59935137ae7b63ce (patch)
tree0bd9ca78dd6d56995b744649046c5789ed961c62 /main.py
parentfa18bcbed1a8099c1789443c2bcfbe747edf7745 (diff)
downloadmanamarket-f74ec66b339cb81bf4bc6e3e59935137ae7b63ce.tar.gz
manamarket-f74ec66b339cb81bf4bc6e3e59935137ae7b63ce.tar.bz2
manamarket-f74ec66b339cb81bf4bc6e3e59935137ae7b63ce.tar.xz
manamarket-f74ec66b339cb81bf4bc6e3e59935137ae7b63ce.zip
Fix: Use sys.exit() so the status can be passed to a sh script (for restarting).
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py6
1 files 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