summaryrefslogtreecommitdiff
path: root/sphinx/websupport/storage/sqlalchemystorage.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/websupport/storage/sqlalchemystorage.py')
-rw-r--r--sphinx/websupport/storage/sqlalchemystorage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/websupport/storage/sqlalchemystorage.py b/sphinx/websupport/storage/sqlalchemystorage.py
index b2efe82b6..e6eccfe97 100644
--- a/sphinx/websupport/storage/sqlalchemystorage.py
+++ b/sphinx/websupport/storage/sqlalchemystorage.py
@@ -45,7 +45,7 @@ class SQLAlchemyStorage(StorageBackend):
session = Session()
node = session.query(Node).filter(Node.id == id).first()
session.close()
- return True if node else False
+ return bool(node)
def add_node(self, id, document, source):
node = Node(id, document, source)