From 4742d33e260bd5148c31790d334881676a268cc3 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 13 Dec 2010 21:09:34 +0000 Subject: [PATCH] 4457: Setup addons svn: r16278 --- src/PluginUtils/_PluginWindows.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PluginUtils/_PluginWindows.py b/src/PluginUtils/_PluginWindows.py index 97660a4c5..da5b44ea5 100644 --- a/src/PluginUtils/_PluginWindows.py +++ b/src/PluginUtils/_PluginWindows.py @@ -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"):