mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-20 00:03:58 +00:00
Catch exceptions from CLI in order to prevent the Ubuntu crash monolog from triggering. refs #1746
This commit is contained in:
@ -109,9 +109,15 @@ def runner(argv,
|
|||||||
|
|
||||||
|
|
||||||
def run(install_node_control=True):
|
def run(install_node_control=True):
|
||||||
|
try:
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
from allmydata.windows.fixups import initialize
|
from allmydata.windows.fixups import initialize
|
||||||
initialize()
|
initialize()
|
||||||
|
|
||||||
rc = runner(sys.argv[1:], install_node_control=install_node_control)
|
rc = runner(sys.argv[1:], install_node_control=install_node_control)
|
||||||
|
except Exception:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
rc = 1
|
||||||
|
|
||||||
sys.exit(rc)
|
sys.exit(rc)
|
||||||
|
Reference in New Issue
Block a user