summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache')
-rw-r--r--pym/portage/cache/sql_template.py4
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: