mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fixes bug 9682 (#9692)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
This commit is contained in:
parent
d22a2e39e7
commit
df86fd275d
@ -1,3 +1,5 @@
|
||||
import openhands.cli.suppress_warnings # noqa: F401 # isort: skip
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
@ -8,7 +10,6 @@ from prompt_toolkit.formatted_text import HTML
|
||||
from prompt_toolkit.shortcuts import clear
|
||||
|
||||
import openhands.agenthub # noqa F401 (we import this to get the agents registered)
|
||||
import openhands.cli.suppress_warnings # noqa: F401
|
||||
from openhands.cli.commands import (
|
||||
check_folder_security_agreement,
|
||||
handle_commands,
|
||||
|
||||
@ -41,6 +41,12 @@ def suppress_cli_warnings():
|
||||
category=UserWarning,
|
||||
)
|
||||
|
||||
# Suppress SyntaxWarnings from pydub.utils about invalid escape sequences
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
category=SyntaxWarning,
|
||||
module=r'pydub\.utils',
|
||||
)
|
||||
# Suppress LiteLLM close_litellm_async_clients was never awaited warning
|
||||
warnings.filterwarnings(
|
||||
'ignore',
|
||||
|
||||
@ -1,9 +1,13 @@
|
||||
import os
|
||||
import warnings
|
||||
|
||||
import uvicorn
|
||||
|
||||
|
||||
def main():
|
||||
# Suppress SyntaxWarnings from pydub.utils about invalid escape sequences
|
||||
warnings.filterwarnings('ignore', category=SyntaxWarning, module=r'pydub\.utils')
|
||||
|
||||
uvicorn.run(
|
||||
'openhands.server.listen:app',
|
||||
host='0.0.0.0',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user