MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / run

Method run

src/cmd/cli_command_base.py:39–52  ·  view source on GitHub ↗
(self, loop: asyncio.AbstractEventLoop)

Source from the content-addressed store, hash-verified

37 pass
38
39 async def run(self, loop: asyncio.AbstractEventLoop) -> int:
40 try:
41 self.initialize_container()
42 return await self.execute(loop)
43 except ImportError as e:
44 print(f"Import error: {e}")
45 print("Make sure you're running this from the project root directory.")
46 return 1
47 except Exception as e:
48 if self._log:
49 self._log.error(f"CLI command failed: {e}", error=e.__dict__)
50 else:
51 print(f"Error: {e}, type: {type(e)}, traceback: {e.__traceback__}")
52 return 1
53
54 @classmethod
55 def start(cls) -> None:

Callers 3

server.pyFile · 0.80
run_migrations_onlineFunction · 0.80
startMethod · 0.80

Calls 3

initialize_containerMethod · 0.95
executeMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected