Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error handelling for the trending_searches function. #557

Merged
merged 3 commits into from
Apr 8, 2023
Merged

error handelling for the trending_searches function. #557

merged 3 commits into from
Apr 8, 2023

Conversation

leyuskckiran1510
Copy link
Contributor

To avoid unnecessary Error raise

@emlazzarin
Copy link
Collaborator

Your change squashes the error completely and creates a new DataFrame with "Data Not Found" inside. It might be better to raise an appropriate exception, or return an empty DataFrame, and allow it to be appropriate handled in the user's application. Otherwise, users will need to check for this counter-intuitive special case.

@leyuskckiran1510
Copy link
Contributor Author

O yeha. That might be the proper fix.
As responding the non empty data fame causes more problem later.
So shall I change the file and remake the PR?

@emlazzarin emlazzarin merged commit 5a09173 into GeneralMills:master Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants