Skip to content

Commit

Permalink
skip non-utf8 content
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Jul 26, 2024
1 parent bb5e8b8 commit 9b0e3de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/googlrot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ async def code_mode(g: Github, googl_perfix_queue_collection: AsyncIOMotorCollec
continue
else:
raise e
except UnicodeDecodeError:
logger.error(f"UnicodeDecodeError: {result.repository.full_name}, skip")
continue
print("conetnt: ", content[:256])
for url in extractor.gen_urls(content):
assert isinstance(url, str)
Expand Down

0 comments on commit 9b0e3de

Please sign in to comment.