From 4fba0cb09c1619455d7ce419d353a953e8a231e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Wed, 23 Feb 2011 16:41:07 +0100 Subject: [PATCH] Bugfix. --- File.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/File.py b/File.py index 99c403a..1db2a97 100755 --- a/File.py +++ b/File.py @@ -54,10 +54,10 @@ class File(BaseFile) : if cacheTuple : cacheData = cacheTuple[1] - subObDict = cacheData.getSubObjects() - if subObDict.has_key(name) : - fileOb = OFS.Image.File(name, name, subObDict[name]) - return fileOb + subObDict = cacheData.getSubObjects() + if subObDict.has_key(name) : + fileOb = OFS.Image.File(name, name, subObDict[name]) + return fileOb raise AttributeError, name -- 2.20.1