-
Notifications
You must be signed in to change notification settings - Fork 104
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
Update mongodb.py #258
Update mongodb.py #258
Conversation
Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work.
But Link your issue properly.
But Link your issue properly? I didn't understand, @Avdhesh-Varshney. |
I've updated it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, nice work
Closes: #257
Describe the add-ons or changes you've made 📃
I have made changes to mongodb.py in order to make the user management system more reliable. I have add some key error-handling improvements:
Database Connection Issues: We’ll wrap the database connection code in a try-except block to catch any connection failures and log errors for easier debugging.
Database Operation Errors: For operations like inserting or retrieving data, we’ll add error handling to catch issues such as duplicate entries or network problems, and provide clear error messages or logs.
Input Validation: We’ll introduce checks for invalid inputs, such as incorrect age formats or missing fields, and ensure the system raises an error or logs the issue when something isn’t right.
Checklist: ☑️