mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
adding ecommerce to .env.example and some error handling in track_package
This commit is contained in:
@@ -92,7 +92,8 @@ def track_package(args: dict) -> dict:
|
||||
carrier = json_data["Carrier"]
|
||||
status_summary = json_data["StatusSummary"]
|
||||
tracking_details = json_data.get("TrackingDetails", [])
|
||||
if tracking_details is not None and tracking_details[0] is not None:
|
||||
last_tracking_update = ""
|
||||
if tracking_details and tracking_details is not None and tracking_details[0] is not None:
|
||||
last_tracking_update = tracking_details[0]["EventDateTimeInDateTimeFormat"]
|
||||
tracking_link = ""
|
||||
if carrier == "USPS":
|
||||
|
||||
Reference in New Issue
Block a user