From: Zac Medico Date: Sat, 23 Jun 2007 11:09:45 +0000 (-0000) Subject: s/OSError/EnvironmentError/ since shutil.move() generally raises an IOError. X-Git-Tag: v2.2_pre1~1183 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d5614c77c8dd2be6e1f9eadf17ccab3db8bdb12b;p=portage.git s/OSError/EnvironmentError/ since shutil.move() generally raises an IOError. svn path=/main/trunk/; revision=6969 --- 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