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

Improved Error Handling #381

Merged
merged 1 commit into from
Oct 6, 2024
Merged

Improved Error Handling #381

merged 1 commit into from
Oct 6, 2024

Conversation

Ankush0286
Copy link
Contributor

@Ankush0286 Ankush0286 commented Oct 5, 2024

To get the error message that I updated in the code, you can follow these steps:

Resolved Issue: #378

File Loading Error

If there's an issue loading the CSV file (e.g., it's missing, corrupted, or not a valid CSV file), the st.error function will display a message like: An error occurred while loading data: specific error message

The specific error message is the exact Python exception raised by the error, such as FileNotFoundError, PermissionError, ParserError or pd.errors.EmptyDataError.

Screenshot:

Screenshot_parsererror

To get the error message that I updated in the code, you can follow these steps:

Scenario 1: File Loading Error

If there's an issue loading the CSV file (e.g., it's missing, corrupted, or not a valid CSV file), the st.error function will display a message like:
lua
Copy code
An error occurred while loading data: <specific error message>
The <specific error message> is the exact Python exception raised by the error, such as FileNotFoundError, PermissionError, ParserError or pd.errors.EmptyDataError.
Scenario 2: Prediction Error

If an error occurs during the prediction process (e.g., model input mismatch or other issues during prediction), the st.error function will display:
go
Copy code
An error occurred during prediction: <specific error message>
This will also show the specific Python error encountered, such as ValueError or TypeError.
Copy link

github-actions bot commented Oct 5, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Our repository.🎊 Thank you so much for taking the time to point this out.

@sanjay-kv sanjay-kv merged commit ed0dc7f into recodehive:main Oct 6, 2024
2 checks passed
Copy link

github-actions bot commented Oct 6, 2024

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants