]> granicus.if.org Git - python/commitdiff
Re-raise the Res.Error if the file doesn't exist.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 29 Mar 2002 21:17:57 +0000 (21:17 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 29 Mar 2002 21:17:57 +0000 (21:17 +0000)
Mac/Lib/macresource.py

index 4eaf0762af336fa1e4695e258defbd972f7f6661..23713a58aee367be3fd16712e5d4129e014e322c 100644 (file)
@@ -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):