Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
devendra.parihar committed Oct 18, 2024
1 parent 09a2705 commit d3238de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions application/parser/remote/github_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ def fetch_file_content(self, repo_url: str, file_path: str) -> str:
decoded_content = base64.b64decode(content["content"]).decode("utf-8")
return f"Filename: {file_path}\n\n{decoded_content}"
except Exception as e:
# print(f"Error decoding content for {file_path}: {e}")
raise
raise e
else:
# print(f"Skipping binary file: {file_path} (MIME type: {mime_type})")
return f"Filename: {file_path} is a binary file and was skipped."
else:
return f"Filename: {file_path}\n\n{content['content']}"
Expand Down

0 comments on commit d3238de

Please sign in to comment.