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

Added function to handle errors in database interactions, making server more stable. #173

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

lsetiawan
Copy link
Member

Overview

This PR addresses #172 by providing a handling on the error. It is not specific to any Exception so I think this might also addresses #150...

Notes

I tested this by deploying WOFpy then restarting the Database. Originally I would get OperationalError, but with the handling, the error is not seen.

@lsetiawan lsetiawan requested a review from emiliom August 29, 2017 20:24
@emiliom
Copy link
Member

emiliom commented Aug 29, 2017

It looks like it's also database-agnostic, right? It will work with any of the database systems?

Otherwise, it looks good, and all tests are passing. I'll merge after I hear back from you.

@lsetiawan
Copy link
Member Author

@emiliom Let me test on mysql real quick.. It should be.

@emiliom
Copy link
Member

emiliom commented Aug 29, 2017

The PR title says "handle database disconnects", but in reality it's broader than that. Please rename the PR, replacing that phrase with something more generic like "handle errors in database interactions" (otherwise it's hard to backtrack the scope of the PR from its title alone).

@lsetiawan
Copy link
Member Author

@emiliom I have confirmed it is database-agnostic. 👍

@lsetiawan lsetiawan changed the title Added function to handle database disconnects, making server more stable. Added function to handle errors in database interactions, making server more stable. Aug 29, 2017
Copy link
Member

@emiliom emiliom left a comment

Choose a reason for hiding this comment

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

Looks good

@emiliom
Copy link
Member

emiliom commented Aug 29, 2017

Closes #172. Confirming that #150 is also solved will require testing.

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