Catch exceptions from CLI in order to prevent the Ubuntu crash monolog from triggering. refs #1746

This commit is contained in:
david-sarah 2012-05-20 15:35:29 +00:00
parent 3ba77925d9
commit 2ee1bc7148

View File

@ -109,9 +109,15 @@ def runner(argv,
def run(install_node_control=True):
if sys.platform == "win32":
from allmydata.windows.fixups import initialize
initialize()
try:
if sys.platform == "win32":
from allmydata.windows.fixups import initialize
initialize()
rc = runner(sys.argv[1:], install_node_control=install_node_control)
except Exception:
import traceback
traceback.print_exc()
rc = 1
rc = runner(sys.argv[1:], install_node_control=install_node_control)
sys.exit(rc)