yoheinakajima / instagraph

Converts text input or URL into knowledge graph and displays
MIT License
3.47k stars 289 forks source link

fix lint error #70

Closed isamu closed 1 year ago

isamu commented 1 year ago

Summary by CodeRabbit

coderabbitai[bot] commented 1 year ago

Walkthrough

The recent changes have focused on enhancing the robustness and reliability of the code. The make_request and too_many_requests functions have been removed for simplicity. The correct_json function now uses regex for better performance, and the _restore function provides more informative error messages. Lastly, the get_graph_data function has been improved to handle exceptions gracefully.

Changes

File Summary
main.py Removed make_request and too_many_requests functions. Enhanced correct_json with regex. Improved error handling in _restore and get_graph_data functions.

🐇

"In the land of code, where the shadows lie,

We've made some changes, oh me, oh my!

Removed some functions, made others neat,

Now our code runs smooth, isn't that sweet?

With regex and error handling, we've taken a stand,

To make our codebase, truly grand! 🎉"


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume. - Additionally, enter `@coderabbitai pause` to halt the bot's ongoing reviews as any issue or review comment. To resume reviews, enter `@coderabbitai resume` as any issue or review comment.