From 504a85bbdb57c496971c0af313a8ce84994822b6 Mon Sep 17 00:00:00 2001 From: jlxip Date: Fri, 21 Apr 2023 22:01:06 +0200 Subject: [PATCH] Use readline if available --- autogpt/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autogpt/utils.py b/autogpt/utils.py index e93d5ac7..1b4fa204 100644 --- a/autogpt/utils.py +++ b/autogpt/utils.py @@ -5,6 +5,12 @@ import yaml from colorama import Fore from git import Repo +# Use readline if available (for clean_input) +try: + import readline +except: + pass + def clean_input(prompt: str = ""): try: