From 7814ebf20dba496a98ab85f4e2ebaefe56fb7e2a 2013-07-20 00:59:15 From: MinRK Date: 2013-07-20 00:59:15 Subject: [PATCH] raise AttributeError on missing attribute in ShimModule required for sphinx build to succeed --- diff --git a/IPython/frontend.py b/IPython/frontend.py index d2650de..5a47d77 100644 --- a/IPython/frontend.py +++ b/IPython/frontend.py @@ -65,7 +65,7 @@ class ShimModule(types.ModuleType): try: pak = module.__dict__[obj] except KeyError: - raise ImportError('No module named %s' % obj) + raise AttributeError(obj) return pak else: # called with un-dotted string