Added try and except for test condition in the bitmessagemain
This commit is contained in:
parent
a16f2c6deb
commit
ef087e571c
|
@ -405,17 +405,19 @@ class Main(object):
|
||||||
else:
|
else:
|
||||||
state.enableGUI = True
|
state.enableGUI = True
|
||||||
# pylint: disable=relative-import
|
# pylint: disable=relative-import
|
||||||
|
try:
|
||||||
from tests import core as test_core
|
from tests import core as test_core
|
||||||
test_core_result = test_core.run()
|
test_core_result = test_core.run()
|
||||||
state.enableGUI = True
|
state.enableGUI = True
|
||||||
self.stop()
|
self.stop()
|
||||||
test_core.cleanup()
|
test_core.cleanup()
|
||||||
sys.exit(
|
sys.exit(
|
||||||
'Core tests failed!'
|
'Core tests failed!'
|
||||||
if test_core_result.errors or test_core_result.failures
|
if test_core_result.errors or test_core_result.failures
|
||||||
else 0
|
else 0
|
||||||
)
|
)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def daemonize():
|
def daemonize():
|
||||||
|
|
Reference in New Issue
Block a user