diff options
Diffstat (limited to 'pym/portage/dbapi/vartree.py')
-rw-r--r-- | pym/portage/dbapi/vartree.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 4173283c0..021191f92 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3726,9 +3726,7 @@ class dblink(object): cfgfiledict.pop("IGNORE", None) try: writedict(cfgfiledict, self.vartree.dbapi._conf_mem_file) - except IOError as e: - if e.errno != errno.ENOENT: - raise + except InvalidLocation: self.settings._init_dirs() writedict(cfgfiledict, self.vartree.dbapi._conf_mem_file) |