1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- fixed exception handling

This commit is contained in:
Marko Jung 2009-06-04 15:20:22 +00:00
parent b556208cd4
commit a02ce1389a

View File

@ -144,7 +144,7 @@ class Cpio:
self.__file = mmap.mmap(self.__file.fileno(), 0, prot = mmap.PROT_READ)
else:
self.__file = mmap.mmap(self.__file.fileno(), 0)
except: EnvironmentError, e:
except EnvironmentError, e:
if e.errno == 19 or ( hasattr(e, 'winerror') and e.winerror == 5 ):
print >>sys.stderr, 'cannot use mmap to read the file, failing back to default'
else: