4315: Error when loading all plugins
svn: r16060
This commit is contained in:
parent
e3fdeb363d
commit
3ef961139a
@ -211,7 +211,12 @@ def load_addon_file(path, callback=None):
|
||||
if callback:
|
||||
callback(_("Unable to open '%s'") % path)
|
||||
return
|
||||
try:
|
||||
buffer = cStringIO.StringIO(fp.read())
|
||||
except:
|
||||
if callback:
|
||||
callback(_("Error in reading '%s'") % path)
|
||||
return
|
||||
fp.close()
|
||||
# file_obj is either Zipfile or TarFile
|
||||
if path.endswith(".zip") or path.endswith(".ZIP"):
|
||||
|
Loading…
Reference in New Issue
Block a user