<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def aot_rpush(self, exit_code):
 """Push message to AOT action channel."""

        if self.tcex.default_args.tc_playbook_db_type == 'Redis':
            try:
                self.db.rpush(self.tcex.default_args.tc_exit_channel, exit_code)
            except Exception as e:
                self.tcex.exit(1, 'Exception during AOT exit push ({}).'.format(e))