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

Fixed #21597: Validated database connection #2454

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Fixed #21597: Validated database connection

  • Loading branch information...
Oleg Matrokhin
Oleg Matrokhin committed Mar 21, 2014
commit 36b8bf870cab183b7ad63c0d8e7e8c02e314a053
@@ -119,7 +119,7 @@ def ensure_connection(self):
"""
Guarantees that a connection to the database is established.
"""
if self.connection is None:
if self.connection is None or not self.is_usable():
with self.wrap_database_errors:
self.connect()

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.