def safe_run_module(self, mod_name, where):
    'A safe version of runpy.run_module().\n\n        This version will never throw an exception, but instead print\n        helpful error messages to the screen.\n\n        `SystemExit` exceptions with status code 0 or None are ignored.\n\n        Parameters\n        ----------\n        mod_name : string\n            The name of the module to be executed.\n        where : dict\n            The globals namespace.\n        '
    try:
        try:
            where.update(runpy.run_module(str(mod_name), run_name='__main__', alter_sys=True))
        except SystemExit as status:
            if status.code:
                raise
    except:
        self.showtraceback()
        warn(('Unknown failure executing module: <%s>' % mod_name))
A safe version of runpy.run_module().

This version will never throw an exception, but instead print
helpful error messages to the screen.

`SystemExit` exceptions with status code 0 or None are ignored.

Parameters
----------
mod_name : string
    The name of the module to be executed.
where : dict
    The globals namespace.
def safe_run_module(self, mod_name, where):
    'A safe version of runpy.run_module().\n\n        This version will never throw an exception, but instead print\n        helpful error messages to the screen.\n\n        `SystemExit` exceptions with status code 0 or None are ignored.\n\n        Parameters\n        ----------\n        mod_name : string\n            The name of the module to be executed.\n        where : dict\n            The globals namespace.\n        '
    try:
        try:
            where.update(runpy.run_module(str(mod_name), run_name='__main__', alter_sys=True))
        except SystemExit as status:
            if status.code:
                raise
    except:
        self.showtraceback()
        warn(('Unknown failure executing module: <%s>' % mod_name))