(self, args, **kwargs)
| 555 | return result |
| 556 | |
| 557 | def run_and_print(self, args, **kwargs): |
| 558 | try: |
| 559 | instance = self.run(args, **kwargs) |
| 560 | if not instance: |
| 561 | raise Exception("Configuration failed") |
| 562 | self.print_output( |
| 563 | instance, |
| 564 | table.PropertyValueTable, |
| 565 | attributes=["all"], |
| 566 | json=args.json, |
| 567 | yaml=args.yaml, |
| 568 | ) |
| 569 | except (KeyboardInterrupt, SystemExit): |
| 570 | raise OperationFailureException("Interrupted") |
| 571 | except Exception as e: |
| 572 | if self.app.client.debug: |
| 573 | raise |
| 574 | |
| 575 | message = six.text_type(e) |
| 576 | print("ERROR: %s" % (message)) |
| 577 | raise OperationFailureException(message) |
nothing calls this directly
no test coverage detected