From 148923c13a8ef619359661a4f7ed2b245d889569 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 13 Apr 2024 22:09:13 +0530 Subject: [PATCH] Fix to raise error on hitting rate limit during Github indexing --- src/khoj/processor/content/github/github_to_entries.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/khoj/processor/content/github/github_to_entries.py b/src/khoj/processor/content/github/github_to_entries.py index 02fa4cf0..2aa63d4e 100644 --- a/src/khoj/processor/content/github/github_to_entries.py +++ b/src/khoj/processor/content/github/github_to_entries.py @@ -69,6 +69,7 @@ class GithubToEntries(TextToEntries): markdown_files, org_files, plaintext_files = self.get_files(repo_url, repo) except ConnectionAbortedError as e: logger.error(f"Github rate limit reached. Skip indexing github repo {repo_shorthand}") + raise e except Exception as e: logger.error(f"Unable to download github repo {repo_shorthand}", exc_info=True) raise e