diff --git a/ufo/llm/cogagent.py b/ufo/llm/cogagent.py index 12f5a8804..0d15bda8a 100644 --- a/ufo/llm/cogagent.py +++ b/ufo/llm/cogagent.py @@ -81,7 +81,7 @@ def chat_completion( logger.error(f"Error making API request: {e}") try: logger.error(response) - except: + except Exception: pass time.sleep(3) continue diff --git a/ufo/llm/llava.py b/ufo/llm/llava.py index 9b1ed789c..ea44d281a 100644 --- a/ufo/llm/llava.py +++ b/ufo/llm/llava.py @@ -94,7 +94,7 @@ def chat_completion( logger.error(f"Error making API request: {e}") try: logger.error(response) - except: + except Exception: pass time.sleep(3) continue