Skip to content

Commit

Permalink
Merge pull request #9 from certego/develop
Browse files Browse the repository at this point in the history
Apparently the connection object must be checked with None instead of bool
  • Loading branch information
0ssigeno authored Aug 30, 2024
2 parents f2422aa + 6a43aee commit fbe3836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion djongo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# * Renz Ladia
# * thestick613

__version__ = '1.3.14'
__version__ = '1.3.15'
2 changes: 1 addition & 1 deletion djongo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def create_cursor(self, name=None):
"""
Returns an active connection cursor to the database.
"""
if not self.connection:
if self.connection is None:
self.connection = self.get_new_connection(self.get_connection_params())
return Cursor(self.client_connection, self.connection, self.djongo_connection)

Expand Down

0 comments on commit fbe3836

Please sign in to comment.