exit 1 on error; #179
This commit is contained in:
parent
380a646f09
commit
ea70a5bd79
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ def main():
|
|||
logging.error(e)
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
os._exit(0)
|
||||
os._exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
@ -81,7 +81,7 @@ def main():
|
|||
logging.error(e)
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
os._exit(0)
|
||||
os._exit(1)
|
||||
|
||||
if int(config['workers']) > 1:
|
||||
if os.name == 'posix':
|
||||
|
|
Loading…
Reference in a new issue