feat(chalice): changed recreate cursor for pg_client
This commit is contained in:
parent
afeccbbc26
commit
dafb88e542
1 changed files with 2 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue