Don't assign an IOError to the name OSError and then never use it.

Instead silently fail on either an IOError or an OSError.
This commit is contained in:
ospalh 2012-10-26 14:05:58 +02:00
parent 1e97b61bb1
commit 0426e87b5f

View file

@ -319,7 +319,7 @@ insert or ignore into revlog values (?,?,?,?,?,?,?,?,?)""", revlog)
path = os.path.join(dir, fname)
try:
return open(path, "rb").read()
except IOError, OSError:
except (IOError, OSError):
return
def _srcMediaData(self, fname):