From cbc2ad3825db3ce5a4a4429497c7ef29f5018574 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 18 Apr 2009 23:22:17 +0000 Subject: [PATCH] Handle IOError from codecs.open(). svn path=/main/trunk/; revision=13360 --- bin/repoman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2