commit | d21c9f48faec41614f99eb95c775cf0ff3fc532f | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Fri Mar 29 21:17:57 2002 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Fri Mar 29 21:17:57 2002 +0000 |
tree | b85f548b67a29877b71a16910fdc359e226b6d5d | |
parent | 2cce33f3bdfa0f59c5e829fb556093c200c3c816 [diff] [blame] |
Re-raise the Res.Error if the file doesn't exist.
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 @@ # Finally try decoding an AppleSingle file pathname = _decode(pathname) refno = Res.FSOpenResourceFile(pathname, u'', 1) + else: + raise return refno def _decode(pathname):