(self)
| 21 | self.monitor_slug = monitor_slug |
| 22 | |
| 23 | def run(self): |
| 24 | try: |
| 25 | with sentry_sdk.monitor(self.monitor_slug): |
| 26 | self._run_script() |
| 27 | except subprocess.CalledProcessError as e: |
| 28 | sys.stderr.write(e.stderr) |
| 29 | sys.stderr.flush() |
| 30 | finally: |
| 31 | sentry_sdk.flush() |
| 32 | |
| 33 | def _run_script(self): |
| 34 | return subprocess.run( |
no test coverage detected