JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(cli): swallow Ctrl+C traceback during dotenv load in CLI startup
XinchenZzza42e6ddcba47
diff --git a/jiuwenswarm/cli/main.py b/jiuwenswarm/cli/main.pyindex 8e4831e779..0fbb602d27 100644--- a/jiuwenswarm/cli/main.py+++ b/jiuwenswarm/cli/main.py@@ -34,6 +34,9 @@ def main() -> None:load_dotenv(dotenv_path=get_env_file(), override=False)except ImportError:pass+ except KeyboardInterrupt:+ logging.warning("Interrupted during startup. Exiting.")+ sys.exit(130)argv = sys.argv[1:]if argv and argv[0] == "chat":