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 sys
|
||||
import logging
|
||||
import argparse
|
||||
import copy
|
||||
@ -102,8 +103,7 @@ def run_start(args):
|
||||
except DatabaseAlreadyExists:
|
||||
pass
|
||||
except KeypairNotFoundException:
|
||||
print('Cannot start BigchainDB, no keypair found. Did you run `bigchaindb configure`?')
|
||||
exit(1)
|
||||
sys.exit('Cannot start BigchainDB, no keypair found. Did you run `bigchaindb configure`?')
|
||||
|
||||
processes = Processes()
|
||||
logger.info('Start bigchaindb main process')
|
||||
|
Loading…
x
Reference in New Issue
Block a user