Skip to content

Commit

Permalink
Use valid 2.4 syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Enol Fernandez committed Jun 17, 2014
1 parent a14a081 commit a10892a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rpath/amiconfig/instancedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a10892a

Please sign in to comment.