TypeError: argument of type 'int' is not iterable
sentry-io opened this issue · 0 comments
sentry-io commented
Sentry Issue: UNSTRUCTURED-API-AJ
TypeError: argument of type 'int' is not iterable
File "starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "prepline_general/api/general.py", line 751, in pipeline_1
list(response_generator(is_multipart=False))[0] if len(files) == 1 else join_responses(list(response_generator(is_multipart=False)))
File "prepline_general/api/general.py", line 670, in response_generator
response = pipeline_api(
File "prepline_general/api/general.py", line 462, in pipeline_api
if "chipper-fast-fine-tuning is not a local folder" in e.args[0] or "ved-fine-tuning is not a local folder" in e.args[0]:
It seems we're catching a certain OSError
that has int for e.args
.