diff --git a/rpath/amiconfig/instancedata.py b/rpath/amiconfig/instancedata.py index e172162..c4f283e 100644 --- a/rpath/amiconfig/instancedata.py +++ b/rpath/amiconfig/instancedata.py @@ -51,10 +51,11 @@ def getUserData(self): if user_data_cache is not None and user_data_cache[0] == '/': f = None try: - f = open(user_data_cache) - return f.read() - except IOError, e: - pass + try: + f = open(user_data_cache) + return f.read() + except IOError, e: + pass finally: if f is not None: f.close()