diff --git a/server.py b/server.py
index 1d4e93ee71c187e31dca36f39191d74774345072..40bb33189d7f1d127df5a6617ed5e15b2d23a5fe 100755
--- a/server.py
+++ b/server.py
@@ -47,7 +47,7 @@ def query(operation, *params):
 		cur.execute(operation.replace('?', '%s'), params)
 		return cur.fetchall()
 	elif config['DB_ENGINE'] == 'sqlite':
-		if 'db' not in g or not g.db.is_connected():
+		if 'db' not in g:
 			g.db = sqlite3.connect(config['SQLITE_DB'])
 			g.db.row_factory = dict_factory
 		cur = g.db.cursor()