diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-09-27 22:03:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-09-27 22:03:49 +0000 |
commit | 8ec75b761e2ca78b782e6364d83f421a16cbb9a8 (patch) | |
tree | 09c5e414f30e6d1fe9d5174d6952f45241868a23 /pym/portage.py | |
parent | faa749007a44bc42934506c7be8ad5eeec8d7596 (diff) | |
download | portage-8ec75b761e2ca78b782e6364d83f421a16cbb9a8.tar.gz portage-8ec75b761e2ca78b782e6364d83f421a16cbb9a8.tar.bz2 portage-8ec75b761e2ca78b782e6364d83f421a16cbb9a8.zip |
Avoid useless and ugly atexit tracebacks that are triggered when
portage exits during the portdbapi constructor. (trunk r6620)
svn path=/main/branches/2.1.2/; revision=7863
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index 14d3e60d0..c3c640182 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6113,6 +6113,9 @@ class portdbapi(dbapi): pass def close_caches(self): + if not hasattr(self, "auxdb"): + # unhandled exception thrown from constructor + return for x in self.auxdb: self.auxdb[x].sync() self.auxdb.clear() |