X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38b97c15acf982020caf8291c2ccc0b0a36eceab..26ee65c723cf55822c540506f064ec11d9b26858:/wxPython/src/_xrc_ex.py diff --git a/wxPython/src/_xrc_ex.py b/wxPython/src/_xrc_ex.py index fbd94db1d6..53abd3d44c 100644 --- a/wxPython/src/_xrc_ex.py +++ b/wxPython/src/_xrc_ex.py @@ -10,7 +10,12 @@ TheXmlResource = XmlResource_Get() def _my_import(name): - mod = __import__(name) + try: + mod = __import__(name) + except ImportError: + import traceback + print traceback.format_exc() + raise components = name.split('.') for comp in components[1:]: mod = getattr(mod, comp)