Re-raise the Res.Error if the file doesn't exist.
This commit is contained in:
parent
2cce33f3bd
commit
d21c9f48fa
|
@ -91,6 +91,8 @@ def open_pathname(pathname):
|
||||||
# Finally try decoding an AppleSingle file
|
# Finally try decoding an AppleSingle file
|
||||||
pathname = _decode(pathname)
|
pathname = _decode(pathname)
|
||||||
refno = Res.FSOpenResourceFile(pathname, u'', 1)
|
refno = Res.FSOpenResourceFile(pathname, u'', 1)
|
||||||
|
else:
|
||||||
|
raise
|
||||||
return refno
|
return refno
|
||||||
|
|
||||||
def _decode(pathname):
|
def _decode(pathname):
|
||||||
|
|
Loading…
Reference in New Issue