From: Zac Medico Date: Sat, 18 Apr 2009 23:22:17 +0000 (-0000) Subject: Handle IOError from codecs.open(). X-Git-Tag: v2.2_rc31~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cbc2ad3825db3ce5a4a4429497c7ef29f5018574;p=portage.git Handle IOError from codecs.open(). svn path=/main/trunk/; revision=13360 --- diff --git a/bin/repoman b/bin/repoman index b568bbead..9d1185746 100755 --- a/bin/repoman +++ b/bin/repoman @@ -589,7 +589,7 @@ for path in portdb.porttrees: desc_path = os.path.join(path, 'profiles', 'profiles.desc') try: desc_file = codecs.open(desc_path, mode='r', errors='replace') - except OSError: + except EnvironmentError: pass else: for i, x in enumerate(desc_file):