4457: Setup addons
svn: r16278
This commit is contained in:
parent
f0ece22743
commit
4742d33e26
@ -537,7 +537,11 @@ class PluginStatus(ManagedWindow.ManagedWindow):
|
|||||||
except:
|
except:
|
||||||
callback(_("Unable to open '%s'") % path)
|
callback(_("Unable to open '%s'") % path)
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
buffer = cStringIO.StringIO(fp.read())
|
buffer = cStringIO.StringIO(fp.read())
|
||||||
|
except:
|
||||||
|
callback(_("Error in reading '%s'") % path)
|
||||||
|
return
|
||||||
fp.close()
|
fp.close()
|
||||||
# file_obj is either Zipfile or TarFile
|
# file_obj is either Zipfile or TarFile
|
||||||
if path.endswith(".zip") or path.endswith(".ZIP"):
|
if path.endswith(".zip") or path.endswith(".ZIP"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user