refactor(meshchat_wrapper): improve code readability by formatting argument list and adding spacing

This commit is contained in:
2026-01-01 22:45:43 -06:00
parent 3e09d7bc44
commit d579a201b3

View File

@@ -1,20 +1,23 @@
import sys
def start_server(port=8000):
try:
from meshchatx.meshchat import main
sys.argv = [
'meshchat',
'--headless',
'--host', '127.0.0.1',
'--port', str(port)
"meshchat",
"--headless",
"--host",
"127.0.0.1",
"--port",
str(port),
]
main()
except Exception as e:
print(f"Error starting MeshChatX server: {e}")
import traceback
traceback.print_exc()
raise