diff --git a/sphinxtools/modulehunter.py b/sphinxtools/modulehunter.py index a4b43d07..b0d4f403 100644 --- a/sphinxtools/modulehunter.py +++ b/sphinxtools/modulehunter.py @@ -342,6 +342,11 @@ def describe_class(obj, module_class, module_name, constants): except AttributeError: # Thanks to ReportLab for this funny exception... continue + except ImportError: + # This can come from the pseudo module in wx.lib.six + message = "ImportError from '%s.%s'.\n Exception was: %s"%(obj, name, format_traceback()) + print(('\nWARNING: %s\n' % message)) + continue if ismodule(item): continue