mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-06 15:48:39 +00:00
fix(utils): return empty list when ValueError is thrown on inspect.getclosurevars
This commit is contained in:
parent
d9c51b71c4
commit
43500c22c3
@ -423,7 +423,7 @@ def get_function_nonlocals(func: Callable) -> list[Any]:
|
||||
else:
|
||||
values.append(vv)
|
||||
return values
|
||||
except (SyntaxError, TypeError, OSError, SystemError):
|
||||
except (SyntaxError, TypeError, ValueError, OSError, SystemError):
|
||||
return []
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user