(*args, **kwargs)
| 39 | |
| 40 | def __call__(self, original_func): |
| 41 | def new_function(*args, **kwargs): |
| 42 | exit_check = False |
| 43 | try: |
| 44 | if original_func(*args, **kwargs) == FAILED: |
| 45 | exit_check = True |
| 46 | except Exception as e: |
| 47 | print("===Exception.Please Check:===", e) |
| 48 | exit_check = True |
| 49 | finally: |
| 50 | if exit_check: |
| 51 | print("==== %s ====" % self.msg) |
| 52 | MarvinCliHelp.print_cmds_help() |
| 53 | sys.exit(1) |
| 54 | return new_function |
| 55 | |
| 56 |
nothing calls this directly
no test coverage detected