[conduit/gsoc09_alexandre: 8/24] Another fix for terminating Conduit over an exception.
- From: Alexandre Rosenfeld <arosenfeld src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [conduit/gsoc09_alexandre: 8/24] Another fix for terminating Conduit over an exception.
- Date: Thu, 13 Aug 2009 04:11:53 +0000 (UTC)
commit 9daa04c3467f644afad9a4cedbb410f4bf0706ef
Author: Alexandre Rosenfeld <airmind gmail com>
Date: Tue Jul 7 05:51:14 2009 -0300
Another fix for terminating Conduit over an exception.
conduit/conduit.real | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/conduit/conduit.real b/conduit/conduit.real
index 6f6e9d0..189fe26 100755
--- a/conduit/conduit.real
+++ b/conduit/conduit.real
@@ -12,6 +12,8 @@ License: GPLv2
"""
import sys
import os.path
+import traceback
+import logging
#support running uninstalled
_dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
@@ -20,10 +22,16 @@ if os.path.exists(os.path.join(_dirname,"ChangeLog")):
import conduit
import conduit.Main
+import conduit.Logging as Logging
+log = logging.getLogger("Conduit")
#import cProfile
#cProfile.run('app = conduit.Main.Application()', 'prof')
#app =
-app = conduit.Main.Application()
+try:
+ app = conduit.Main.Application()
+except:
+ log.error("Fatal error, exiting. %s" % traceback.format_exc())
+ exit(-1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]