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:
parent
b556208cd4
commit
a02ce1389a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user