Fix to raise error on hitting rate limit during Github indexing

This commit is contained in:
Debanjum Singh Solanky 2024-04-13 22:09:13 +05:30
parent 78bac4ae05
commit 148923c13a

View file

@ -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