projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ba7792
)
Catch exceptions from CLI in order to prevent the Ubuntu crash monolog from triggerin...
author
david-sarah
<david-sarah@jacaranda.org>
Sun, 20 May 2012 15:35:29 +0000
(15:35 +0000)
committer
david-sarah
<david-sarah@jacaranda.org>
Sun, 20 May 2012 15:35:29 +0000
(15:35 +0000)
src/allmydata/scripts/runner.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/runner.py
b/src/allmydata/scripts/runner.py
index e66f8d33b95f38f20063671e04c40a3c034a3a8f..210efb6546468aef3839cca9970ecca7ef7961c6 100644
(file)
--- a/
src/allmydata/scripts/runner.py
+++ b/
src/allmydata/scripts/runner.py
@@
-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)