#NEWLINE# def try_( module , return_try_exception = False , **kwargs ) : #NEWLINE# #INDENT# "\n    Try to run a module command. On an exception return None.\n    If `return_try_exception` is set True return the exception.\n    This can be helpful in templates where running a module might fail as expected.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        <pre>\n        {% for i in range(0,230) %}\n            {{ salt['test.try'](module='ipmi.get_users', bmc_host='172.2.2.'+i)|yaml(False) }}\n        {% endfor %}\n        </pre>\n    " #NEWLINE# try : #NEWLINE# #INDENT# return __salt__ [ module ] ( ** kwargs ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# if module : #NEWLINE# #INDENT# return e #NEWLINE# #UNINDENT# #UNINDENT# return None