Merge remote-tracking branch 'origin/api-v1.8.2_for_upstream' into api-v1.8.2

This commit is contained in:
Taha Yassine Kraiem 2022-10-21 19:19:52 +02:00
commit 680dd7b31e

View file

@ -147,7 +147,8 @@ class PostgresClient:
self.cursor.close()
except Exception as error:
logging.error("Error while closing cursor for recreation", error)
self.cursor = self.connection.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
self.cursor = None
self.__enter__()
def close():