From 4095af51f31b336d1f0134148724f6d20a3f66b3 Mon Sep 17 00:00:00 2001 From: abhijeet Date: Wed, 26 Jul 2023 11:44:03 +0530 Subject: [PATCH] readme toolkit fix --- superagi/helper/tool_helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superagi/helper/tool_helper.py b/superagi/helper/tool_helper.py index 3dc4d1587..b9eaf0865 100644 --- a/superagi/helper/tool_helper.py +++ b/superagi/helper/tool_helper.py @@ -230,6 +230,8 @@ def process_files(folder_paths, session, organisation, code_link=None): def get_readme_content_from_code_link(tool_code_link): + if tool_code_link is None: + return None parsed_url = urlparse(tool_code_link) path_parts = parsed_url.path.split("/")