mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Use sys.exit
instead of exit
This commit is contained in:
parent
a59797c491
commit
ab8113a91c
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
import copy
|
import copy
|
||||||
@ -102,8 +103,7 @@ def run_start(args):
|
|||||||
except DatabaseAlreadyExists:
|
except DatabaseAlreadyExists:
|
||||||
pass
|
pass
|
||||||
except KeypairNotFoundException:
|
except KeypairNotFoundException:
|
||||||
print('Cannot start BigchainDB, no keypair found. Did you run `bigchaindb configure`?')
|
sys.exit('Cannot start BigchainDB, no keypair found. Did you run `bigchaindb configure`?')
|
||||||
exit(1)
|
|
||||||
|
|
||||||
processes = Processes()
|
processes = Processes()
|
||||||
logger.info('Start bigchaindb main process')
|
logger.info('Start bigchaindb main process')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user