MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / update_impl

Method update_impl

octobot/updater/python_updater.py:74–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 return None
73
74 async def update_impl(self) -> bool:
75 try:
76 if os.getenv("ENABLE_PYTHON_UPDATER", False):
77 if self.use_git:
78 self._run_git_checkout_tag(self._run_git_get_latest_tag())
79 return True
80
81 # with pip
82 self._run_pip_update_package(constants.PROJECT_NAME)
83 return True
84 return False
85 except subprocess.CalledProcessError as e:
86 self.logger.debug(f"Failed to update : {e}")
87 return False
88
89 def _run_pip_command(self, *args):
90 """

Callers

nothing calls this directly

Calls 4

_run_git_checkout_tagMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected