X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38b97c15acf982020caf8291c2ccc0b0a36eceab..9057d6d46ea0acc7223311b81c7b50707d787f66:/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)