mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
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:
parent
1e97b61bb1
commit
0426e87b5f
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue