We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d6d69 commit a94ed24Copy full SHA for a94ed24
libs/cli/langchain_cli/utils/events.py
@@ -2,6 +2,8 @@
2
import json
3
from typing import Any, Optional, TypedDict
4
5
+import typer
6
+
7
WRITE_KEY = "310apTK0HUFl4AOv"
8
9
@@ -37,5 +39,5 @@ def create_events(events: list[EventDict]) -> Optional[Any]:
37
39
res = conn.getresponse()
38
40
41
return json.loads(res.read())
- except Exception:
- return None
42
+ except (http.client.HTTPException, OSError, json.JSONDecodeError) as exc:
43
+ typer.echo(f"Error sending events: {exc}")
0 commit comments