diff options
author | 2009-07-29 12:50:46 +0200 | |
---|---|---|
committer | 2009-07-29 12:56:04 +0200 | |
commit | b58526884b993e1107d30ee3d53468f6f717caba (patch) | |
tree | 600f0b5fe3864a988ea0c3e253dda1a5377cd2a5 | |
parent | Create mechanism for skipping packages from dep (diff) | |
download | collagen-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__.py | 6 |
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 |