def safe_run_module(self, mod_name, where):
try:<EOL><INDENT>where.update(<EOL>runpy.run_module(str(mod_name), run_name="<STR_LIT:__main__>",<EOL>alter_sys=True)<EOL>)<EOL><DEDENT>except:<EOL><INDENT>self.showtraceback()<EOL>warn('<STR_LIT>' % mod_name)<EOL><DEDENT>
A safe version of runpy.run_module().

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

        Parameters
        ----------
        mod_name : string
            The name of the module to be executed.
        where : dict
            The globals namespace.