From d5614c77c8dd2be6e1f9eadf17ccab3db8bdb12b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 23 Jun 2007 11:09:45 +0000 Subject: [PATCH] s/OSError/EnvironmentError/ since shutil.move() generally raises an IOError. svn path=/main/trunk/; revision=6969 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index c52fcb3b3..b15cede57 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -310,7 +310,7 @@ class vardbapi(dbapi): try: shutil.move(os.path.join(newpath, old_pf + ".ebuild"), os.path.join(newpath, new_pf + ".ebuild")) - except OSError, e: + except EnvironmentError, e: if e.errno != errno.ENOENT: raise del e -- 2.26.2