summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-29 21:17:57 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-29 21:17:57 (GMT)
commitd21c9f48faec41614f99eb95c775cf0ff3fc532f (patch)
treeb85f548b67a29877b71a16910fdc359e226b6d5d /Mac
parent2cce33f3bdfa0f59c5e829fb556093c200c3c816 (diff)
downloadcpython-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')
-rw-r--r--Mac/Lib/macresource.py2
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):