Skip to content

Commit b1a792c

Browse files
committed
fix: add error status message for None
1 parent 4732185 commit b1a792c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/strands_tools/apify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def _format_error(e: Exception) -> str:
119119
"Rate limit exceeded. The Apify client retries automatically; "
120120
"if this persists, reduce request frequency."
121121
)
122+
case None:
123+
return f"Apify API error: {msg}"
122124
case _:
123125
return f"Apify API error ({status_code}): {msg}"
124126
return str(e)

0 commit comments

Comments
 (0)