X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38b97c15acf982020caf8291c2ccc0b0a36eceab..f89238b9fe8396c67b3a12a469a930c9eb6e4be6:/wxPython/src/_xrc_ex.py?ds=inline 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)