MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / run

Method run

scripts/cron_wrapper.py:23–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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(

Callers 2

mainFunction · 0.95
_run_scriptMethod · 0.45

Calls 2

_run_scriptMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected