akseljoonas HF Staff commited on
Commit
18ac8bd
·
1 Parent(s): 6a4671a

Suppress whoosh SyntaxWarning noise on startup

Browse files
Files changed (1) hide show
  1. agent/main.py +2 -0
agent/main.py CHANGED
@@ -1034,6 +1034,8 @@ def cli():
1034
  _logging.getLogger("asyncio").setLevel(_logging.CRITICAL)
1035
  # Suppress litellm pydantic deprecation warnings
1036
  warnings.filterwarnings("ignore", category=DeprecationWarning, module="litellm")
 
 
1037
 
1038
  parser = argparse.ArgumentParser(description="Hugging Face Agent CLI")
1039
  parser.add_argument("prompt", nargs="?", default=None, help="Run headlessly with this prompt")
 
1034
  _logging.getLogger("asyncio").setLevel(_logging.CRITICAL)
1035
  # Suppress litellm pydantic deprecation warnings
1036
  warnings.filterwarnings("ignore", category=DeprecationWarning, module="litellm")
1037
+ # Suppress whoosh invalid escape sequence warnings (third-party, unfixed upstream)
1038
+ warnings.filterwarnings("ignore", category=SyntaxWarning, module="whoosh")
1039
 
1040
  parser = argparse.ArgumentParser(description="Hugging Face Agent CLI")
1041
  parser.add_argument("prompt", nargs="?", default=None, help="Run headlessly with this prompt")