mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Fix to raise error on hitting rate limit during Github indexing
This commit is contained in:
@@ -69,6 +69,7 @@ class GithubToEntries(TextToEntries):
|
|||||||
markdown_files, org_files, plaintext_files = self.get_files(repo_url, repo)
|
markdown_files, org_files, plaintext_files = self.get_files(repo_url, repo)
|
||||||
except ConnectionAbortedError as e:
|
except ConnectionAbortedError as e:
|
||||||
logger.error(f"Github rate limit reached. Skip indexing github repo {repo_shorthand}")
|
logger.error(f"Github rate limit reached. Skip indexing github repo {repo_shorthand}")
|
||||||
|
raise e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Unable to download github repo {repo_shorthand}", exc_info=True)
|
logger.error(f"Unable to download github repo {repo_shorthand}", exc_info=True)
|
||||||
raise e
|
raise e
|
||||||
|
|||||||
Reference in New Issue
Block a user