mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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)
|
path = os.path.join(dir, fname)
|
||||||
try:
|
try:
|
||||||
return open(path, "rb").read()
|
return open(path, "rb").read()
|
||||||
except IOError, OSError:
|
except (IOError, OSError):
|
||||||
return
|
return
|
||||||
|
|
||||||
def _srcMediaData(self, fname):
|
def _srcMediaData(self, fname):
|
||||||
|
|
Loading…
Reference in a new issue