diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-26 14:49:34 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-26 14:49:34 -0700 |
commit | 4fed6bdf7360b3f9d3ea4832973c398aa387f0a8 (patch) | |
tree | 91e866a99046740941b5bcf4a913923de4956f94 /pym/portage/cache | |
parent | Make the Atom class add 'EAPI.incompatible' category attributes to (diff) | |
download | portage-4fed6bdf7360b3f9d3ea4832973c398aa387f0a8.tar.gz portage-4fed6bdf7360b3f9d3ea4832973c398aa387f0a8.tar.bz2 portage-4fed6bdf7360b3f9d3ea4832973c398aa387f0a8.zip |
Ensure SystemExit is never caught.
Diffstat (limited to 'pym/portage/cache')
-rw-r--r-- | pym/portage/cache/sql_template.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/cache/sql_template.py b/pym/portage/cache/sql_template.py index d3c6a0b30..d023b1b5d 100644 --- a/pym/portage/cache/sql_template.py +++ b/pym/portage/cache/sql_template.py @@ -129,6 +129,8 @@ class SQLDatabase(template.database): raise cache_errors.CacheCorruption(self, cpv, e) if self.con.rowcount <= 0: raise KeyError(cpv) + except SystemExit: + raise except Exception: if not self.autocommits: self.db.rollback() @@ -166,6 +168,8 @@ class SQLDatabase(template.database): if self.autocommits: self.commit() + except SystemExit: + raise except Exception: if not self.autocommits: try: |