Skip to content

Commit 00de8ee

Browse files
committed
Merge branch 'main' into vo/docs/litellm-prompt-caching
2 parents f44c033 + 42f2b4d commit 00de8ee

File tree

6 files changed

+351
-80
lines changed

6 files changed

+351
-80
lines changed

src/crewai/events/listeners/tracing/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ def get_input():
358358
try:
359359
response = input().strip().lower()
360360
result[0] = response in ["y", "yes"]
361-
except (EOFError, KeyboardInterrupt):
361+
except (EOFError, KeyboardInterrupt, OSError, LookupError):
362+
# Handle all input-related errors silently
362363
result[0] = False
363364

364365
input_thread = threading.Thread(target=get_input, daemon=True)
@@ -371,6 +372,7 @@ def get_input():
371372
return result[0]
372373

373374
except Exception:
375+
# Suppress any warnings or errors and assume "no"
374376
return False
375377

376378

0 commit comments

Comments
 (0)