Added try and except for test condition in the bitmessagemain

This commit is contained in:
jai.s 2020-09-22 20:22:17 +05:30
parent a16f2c6deb
commit ef087e571c
No known key found for this signature in database
GPG Key ID: 360CFA25EFC67D12

View File

@ -405,17 +405,19 @@ class Main(object):
else:
state.enableGUI = True
# pylint: disable=relative-import
from tests import core as test_core
test_core_result = test_core.run()
state.enableGUI = True
self.stop()
test_core.cleanup()
sys.exit(
'Core tests failed!'
if test_core_result.errors or test_core_result.failures
else 0
)
try:
from tests import core as test_core
test_core_result = test_core.run()
state.enableGUI = True
self.stop()
test_core.cleanup()
sys.exit(
'Core tests failed!'
if test_core_result.errors or test_core_result.failures
else 0
)
except:
pass
@staticmethod
def daemonize():