diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2012-04-01 23:15:40 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2012-04-01 23:15:40 +0100 |
commit | f74ec66b339cb81bf4bc6e3e59935137ae7b63ce (patch) | |
tree | 0bd9ca78dd6d56995b744649046c5789ed961c62 | |
parent | fa18bcbed1a8099c1789443c2bcfbe747edf7745 (diff) | |
download | manamarket-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).
-rwxr-xr-x | main.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |