Prevent an exception-handling routine from failing with pythonw
On Windows, when running RIDE via pythonw.exe,  the print statement throws an error. But this except-block is a normal part of handling libraries known only by libdoc.
@@ -80,7 +80,10 @@ class LibraryManager(Thread):
library_name.replace('/', os.sep), os.path.abspath('.'))
return get_import_result(path, library_args)
except Exception, err:
+ try:
print 'FAILED', library_name, err
+ except IOError:
+ pass
kws = self._spec_initializer.init_from_spec(library_name)
if not kws:
msg = 'Importing test library "%s" failed' % library_name
