From: Jack Jansen Date: Fri, 29 Mar 2002 21:17:57 +0000 (+0000) Subject: Re-raise the Res.Error if the file doesn't exist. X-Git-Tag: v2.3c1~6255 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d21c9f48faec41614f99eb95c775cf0ff3fc532f;p=thirdparty%2FPython%2Fcpython.git Re-raise the Res.Error if the file doesn't exist. --- diff --git a/Mac/Lib/macresource.py b/Mac/Lib/macresource.py index 4eaf0762af33..23713a58aee3 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):