1 |
Author: zmedico |
2 |
Date: 2009-04-30 07:18:20 +0000 (Thu, 30 Apr 2009) |
3 |
New Revision: 13516 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.6/bin/repoman |
7 |
Log: |
8 |
Handle IOError from codecs.open(). (trunk r13360) |
9 |
|
10 |
Modified: main/branches/2.1.6/bin/repoman |
11 |
=================================================================== |
12 |
--- main/branches/2.1.6/bin/repoman 2009-04-30 07:18:07 UTC (rev 13515) |
13 |
+++ main/branches/2.1.6/bin/repoman 2009-04-30 07:18:20 UTC (rev 13516) |
14 |
@@ -589,7 +589,7 @@ |
15 |
desc_path = os.path.join(path, 'profiles', 'profiles.desc') |
16 |
try: |
17 |
desc_file = codecs.open(desc_path, mode='r', errors='replace') |
18 |
- except OSError: |
19 |
+ except EnvironmentError: |
20 |
pass |
21 |
else: |
22 |
for i, x in enumerate(desc_file): |