aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-07-29 12:50:46 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-07-29 12:56:04 +0200
commitb58526884b993e1107d30ee3d53468f6f717caba (patch)
tree600f0b5fe3864a988ea0c3e253dda1a5377cd2a5
parentCreate mechanism for skipping packages from dep (diff)
downloadcollagen-b58526884b993e1107d30ee3d53468f6f717caba.tar.gz
collagen-b58526884b993e1107d30ee3d53468f6f717caba.tar.bz2
collagen-b58526884b993e1107d30ee3d53468f6f717caba.zip
Added top-level exception handling
this is last place to catch errors inside main app.
-rw-r--r--src/tinderbox/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py
index edad312..b3da906 100644
--- a/src/tinderbox/__init__.py
+++ b/src/tinderbox/__init__.py
@@ -59,7 +59,11 @@ class Tinderbox(object):
(gnp.package_name,gnp.use_flags)
package = Package(gnp.package_name, gnp.version, gnp.use_flags)
sleep(5)
- self.emerge_package(package)
+ try:
+ self.emerge_package(package)
+ except Exception, e:
+ log.error("Fatal error when emerging package %s, see backtrace" % package.name)
+ log.error(format_exc())
else:
print "Unknown reply: %s" % reply_unpickled