mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-23 15:48:11 +02:00
fix execute_nb_code bug
This commit is contained in:
parent
a989a1ab51
commit
56435cd6a0
2 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ class ExecuteNbCode(Action):
|
|||
outputs = self.parse_outputs(self.nb.cells[-1].outputs)
|
||||
outputs, success = truncate(remove_escape_and_color_codes(outputs), is_success=success)
|
||||
|
||||
if "!pip" in outputs:
|
||||
if "!pip" in code:
|
||||
success = False
|
||||
|
||||
return outputs, success
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue