diff --git a/pscheduler-server/pscheduler-server/api-server/pschedulerapiserver/dbcursor.py b/pscheduler-server/pscheduler-server/api-server/pschedulerapiserver/dbcursor.py index e99199e7d..72bcd1e13 100644 --- a/pscheduler-server/pscheduler-server/api-server/pschedulerapiserver/dbcursor.py +++ b/pscheduler-server/pscheduler-server/api-server/pschedulerapiserver/dbcursor.py @@ -65,7 +65,7 @@ def cursor(self): # Make sure we have a cursor. - if self.ccursor is None or self.ccursor.closed(): + if self.ccursor is None or self.ccursor.closed: self.ccursor = self.db.cursor() return self.ccursor