4457: Setup addons

svn: r16278
This commit is contained in:
Doug Blank 2010-12-13 21:09:34 +00:00
parent f0ece22743
commit 4742d33e26

View File

@ -537,7 +537,11 @@ class PluginStatus(ManagedWindow.ManagedWindow):
except:
callback(_("Unable to open '%s'") % path)
return
buffer = cStringIO.StringIO(fp.read())
try:
buffer = cStringIO.StringIO(fp.read())
except:
callback(_("Error in reading '%s'") % path)
return
fp.close()
# file_obj is either Zipfile or TarFile
if path.endswith(".zip") or path.endswith(".ZIP"):