diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-29 21:17:57 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-03-29 21:17:57 (GMT) |
commit | d21c9f48faec41614f99eb95c775cf0ff3fc532f (patch) | |
tree | b85f548b67a29877b71a16910fdc359e226b6d5d /Mac/Lib | |
parent | 2cce33f3bdfa0f59c5e829fb556093c200c3c816 (diff) | |
download | cpython-d21c9f48faec41614f99eb95c775cf0ff3fc532f.zip cpython-d21c9f48faec41614f99eb95c775cf0ff3fc532f.tar.gz cpython-d21c9f48faec41614f99eb95c775cf0ff3fc532f.tar.bz2 |
Re-raise the Res.Error if the file doesn't exist.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/macresource.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Lib/macresource.py b/Mac/Lib/macresource.py index 4eaf076..23713a5 100644 --- a/Mac/Lib/macresource.py +++ b/Mac/Lib/macresource.py @@ -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): |