Commit 51400138 authored by Jack Jansen's avatar Jack Jansen

Re-raise the Res.Error if the file doesn't exist.

parent 8d0be0ff
......@@ -91,6 +91,8 @@ def open_pathname(pathname):
# Finally try decoding an AppleSingle file
pathname = _decode(pathname)
refno = Res.FSOpenResourceFile(pathname, u'', 1)
else:
raise
return refno
def _decode(pathname):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment