Skip to content

Commit

Permalink
google return non-array
Browse files Browse the repository at this point in the history
  • Loading branch information
FOLLGAD committed Apr 18, 2023
1 parent 87b84ff commit 1408208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def execute_command(command_name: str, arguments, cfg: Config):
return google_result
safe_message = [google_result_single.encode('utf-8', 'ignore') for google_result_single in google_result]
else:
return [google_result]
return google_result
safe_message = google_result.encode('utf-8', 'ignore')

return str(safe_message)
Expand Down

0 comments on commit 1408208

Please sign in to comment.