mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 15:33:11 +00:00
Lint
This commit is contained in:
@@ -417,8 +417,6 @@ class Runnable(Generic[Input, Output], ABC):
|
|||||||
output = func(input, run_manager=run_managers) # type: ignore[call-arg]
|
output = func(input, run_manager=run_managers) # type: ignore[call-arg]
|
||||||
else:
|
else:
|
||||||
output = func(input) # type: ignore[call-arg]
|
output = func(input) # type: ignore[call-arg]
|
||||||
|
|
||||||
print("output", output)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
for run_manager in run_managers:
|
for run_manager in run_managers:
|
||||||
run_manager.on_chain_error(e)
|
run_manager.on_chain_error(e)
|
||||||
@@ -489,7 +487,6 @@ class Runnable(Generic[Input, Output], ABC):
|
|||||||
output = await func(input, run_manager=run_managers) # type: ignore
|
output = await func(input, run_manager=run_managers) # type: ignore
|
||||||
else:
|
else:
|
||||||
output = await func(input) # type: ignore[call-arg]
|
output = await func(input) # type: ignore[call-arg]
|
||||||
print("output", output)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await asyncio.gather(
|
await asyncio.gather(
|
||||||
*(run_manager.on_chain_error(e) for run_manager in run_managers)
|
*(run_manager.on_chain_error(e) for run_manager in run_managers)
|
||||||
|
Reference in New Issue
Block a user