From d21c9f48faec41614f99eb95c775cf0ff3fc532f Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 29 Mar 2002 21:17:57 +0000 Subject: [PATCH] Re-raise the Res.Error if the file doesn't exist. --- Mac/Lib/macresource.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/Lib/macresource.py b/Mac/Lib/macresource.py index 4eaf0762af..23713a58ae 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): -- 2.40.0