def prepare_module(self):
<EOL>if self.has_post_config_hook:<EOL><INDENT>try:<EOL><INDENT>self.module_class.post_config_hook()<EOL><DEDENT>except Exception as e:<EOL><INDENT>self.terminated = True<EOL>self.error_index = <NUM_LIT:0><EOL>self.error_messages = [<EOL>self.module_nice_name,<EOL>u"<STR_LIT>".format(<EOL>self.module_nice_name, str(e) or e.__class__.__name__<EOL>),<EOL>]<EOL>self.error_output(self.error_messages[<NUM_LIT:0>])<EOL>msg = "<STR_LIT>" % self.module_full_name<EOL>self._py3_wrapper.report_exception(msg, notify_user=False)<EOL>self._py3_wrapper.log("<STR_LIT>" % self.module_full_name)<EOL><DEDENT><DEDENT>self.enabled = True<EOL>
Ready the module to get it ready to start.